From 5a52fe4fa8dffdaf33cd024e1a4b18c8facb451c Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 9 Mar 2017 15:55:49 +0100 Subject: 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. --- p11-kit/rpc-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.1