summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-03-09 15:55:49 +0100
committerDaiki Ueno <ueno@gnu.org>2017-03-09 16:35:50 +0100
commit5a52fe4fa8dffdaf33cd024e1a4b18c8facb451c (patch)
tree3204c09dd8cf4a78cc5d440717f21da9132e3f55
parent13160c1f95758387dffc41345e20d89ff9b5a5c0 (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.
-rw-r--r--p11-kit/rpc-server.c2
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: