diff options
-rw-r--r-- | src/assuan-socket-connect.c | 2 | ||||
-rw-r--r-- | tests/fdpassing.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/assuan-socket-connect.c b/src/assuan-socket-connect.c index 182f9b3..b2f3c76 100644 --- a/src/assuan-socket-connect.c +++ b/src/assuan-socket-connect.c @@ -137,7 +137,7 @@ _assuan_connect_finalize (assuan_context_t ctx, assuan_fd_t fd, int process_id = -1; /* Parse the message: OK ..., process %i */ - line = strchr (line, ','); + line = strrchr (line, ','); if (line) { line = strchr (line + 1, ' '); diff --git a/tests/fdpassing.c b/tests/fdpassing.c index 438c8c5..eef447f 100644 --- a/tests/fdpassing.c +++ b/tests/fdpassing.c @@ -229,6 +229,7 @@ server_socket (const char *socketname) log_fatal ("assuan_init_socket_server failed: %s\n", gpg_strerror (rc)); assuan_set_sock_nonce (ctx, &socket_nonce); + assuan_set_hello_line (ctx, "Hello, this is a socket server."); server_common (ctx); } |