aboutsummaryrefslogtreecommitdiffstats
path: root/scd/command.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-01-29 20:17:51 +0000
committerWerner Koch <[email protected]>2004-01-29 20:17:51 +0000
commit94c03c860e7b0262d22662bf41e9ccbb558101ff (patch)
tree319defa0a3549ade19526f8dedc6f391550ae1e3 /scd/command.c
parent* agent.h (server_control_s): Add connection_fd field. (diff)
downloadgnupg-94c03c860e7b0262d22662bf41e9ccbb558101ff.tar.gz
gnupg-94c03c860e7b0262d22662bf41e9ccbb558101ff.zip
(reset_notify): Release the application context and
close the reader.
Diffstat (limited to 'scd/command.c')
-rw-r--r--scd/command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scd/command.c b/scd/command.c
index 9e571f228..d449eee52 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -73,9 +73,10 @@ reset_notify (ASSUAN_CONTEXT ctx)
}
if (ctrl->app_ctx)
{
- /* FIXME: close the application. */
- xfree (ctrl->app_ctx);
+ int slot = ctrl->app_ctx->slot;
+ release_application (ctrl->app_ctx);
ctrl->app_ctx = NULL;
+ apdu_close_reader (slot);
}
}