diff options
author | Werner Koch <[email protected]> | 2001-12-14 19:35:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-12-14 19:35:56 +0000 |
commit | 8cd7e2ab8d81aa432c236aee64c9f6cb02bc0c20 (patch) | |
tree | 62d92dfc604ae6b663b1e7a4c524906521d97864 /assuan/assuan-handler.c | |
parent | * gpgsm.c (main): New option --debug-wait n, so that it is (diff) | |
download | gnupg-8cd7e2ab8d81aa432c236aee64c9f6cb02bc0c20.tar.gz gnupg-8cd7e2ab8d81aa432c236aee64c9f6cb02bc0c20.zip |
* assuan-listen.c (assuan_close_input_fd): New.
(assuan_close_output_fd): New.
* assuan-handler.c (std_handler_reset): Always close them after a
reset command.
(std_handler_bye): Likewise.
Diffstat (limited to 'assuan/assuan-handler.c')
-rw-r--r-- | assuan/assuan-handler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assuan/assuan-handler.c b/assuan/assuan-handler.c index 8ec8b2301..a82bd5379 100644 --- a/assuan/assuan-handler.c +++ b/assuan/assuan-handler.c @@ -54,6 +54,8 @@ std_handler_bye (ASSUAN_CONTEXT ctx, char *line) { if (ctx->bye_notify_fnc) ctx->bye_notify_fnc (ctx); + assuan_close_input_fd (ctx); + assuan_close_output_fd (ctx); return -1; /* pretty simple :-) */ } @@ -68,6 +70,8 @@ std_handler_reset (ASSUAN_CONTEXT ctx, char *line) { if (ctx->reset_notify_fnc) ctx->reset_notify_fnc (ctx); + assuan_close_input_fd (ctx); + assuan_close_output_fd (ctx); return 0; } |