summaryrefslogtreecommitdiffstats
path: root/assuan
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2001-12-13 10:07:28 +0100
committerWerner Koch <wk@gnupg.org>2001-12-13 10:07:28 +0100
commit717bc63ad2741058d1b55f5204ca49147d3c4749 (patch)
treeaf1f7c4f071707e7563f948267eb3b854e4d0404 /assuan
parent* gpgsm.c (main): New options --assume-{armor,base64,binary}. (diff)
downloadgnupg2-717bc63ad2741058d1b55f5204ca49147d3c4749.tar.xz
gnupg2-717bc63ad2741058d1b55f5204ca49147d3c4749.zip
Fixed INPUT/OUTPUT command
Diffstat (limited to 'assuan')
-rw-r--r--assuan/assuan-handler.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/assuan/assuan-handler.c b/assuan/assuan-handler.c
index c8be909d2..ff8024aa0 100644
--- a/assuan/assuan-handler.c
+++ b/assuan/assuan-handler.c
@@ -88,8 +88,9 @@ parse_cmd_input_output (ASSUAN_CONTEXT ctx, char *line, int *rfd)
if (!digitp (*line))
return set_error (ctx, Syntax_Error, "number required");
*rfd = strtoul (line, &endp, 10);
- if (*endp)
- return set_error (ctx, Syntax_Error, "garbage found");
+ /* remove that argument so that a notify handler won't see it */
+ memset (line, ' ', endp? (endp-line):strlen(line));
+
if (*rfd == ctx->inbound.fd)
return set_error (ctx, Parameter_Conflict, "fd same as inbound fd");
if (*rfd == ctx->outbound.fd)
@@ -381,7 +382,7 @@ process_request (ASSUAN_CONTEXT ctx)
}
else if (rc == -1)
{ /* No error checking because the peer may have already disconnect */
- assuan_write_line (ctx, "OK Hope to meet you again");
+ assuan_write_line (ctx, "OK closing connection");
}
else
{