diff options
author | NIIBE Yutaka <[email protected]> | 2023-06-01 04:40:05 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-06-01 04:40:05 +0000 |
commit | 592f6bb89ad160d81e5a658e45df590120df8b60 (patch) | |
tree | 73594f7549b271bf2e9e759032fc7745614c7f17 /src | |
parent | w32: Always include process information in HELLO. (diff) | |
download | libassuan-592f6bb89ad160d81e5a658e45df590120df8b60.tar.gz libassuan-592f6bb89ad160d81e5a658e45df590120df8b60.zip |
w32: Fix hello_line parsing for fd passing.
* tests/fdpassing.c (server_socket): Test with comma in the hello
line.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/assuan-socket-connect.c | 2 |
1 files changed, 1 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, ' '); |