diff options
author | Daiki Ueno <dueno@redhat.com> | 2017-03-09 15:55:49 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2017-03-09 16:35:50 +0100 |
commit | 5a52fe4fa8dffdaf33cd024e1a4b18c8facb451c (patch) | |
tree | 3204c09dd8cf4a78cc5d440717f21da9132e3f55 /p11-kit | |
parent | 13160c1f95758387dffc41345e20d89ff9b5a5c0 (diff) |
remote: Fix typo when writing a credential byte
out_fd is not always 1 when p11_kit_remote_serve_module() is used for
writing a custom server.
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/rpc-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/rpc-server.c b/p11-kit/rpc-server.c index 5824157..071064f 100644 --- a/p11-kit/rpc-server.c +++ b/p11-kit/rpc-server.c @@ -1953,7 +1953,7 @@ p11_kit_remote_serve_module (CK_FUNCTION_LIST *module, } version = 0; - switch (write (out_fd, &version, out_fd)) { + switch (write (out_fd, &version, 1)) { case 1: break; default: |