From 94c03c860e7b0262d22662bf41e9ccbb558101ff Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 29 Jan 2004 20:17:51 +0000 Subject: (reset_notify): Release the application context and close the reader. --- scd/ChangeLog | 5 +++++ scd/command.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scd/ChangeLog b/scd/ChangeLog index 66f48d467..f6fc67423 100644 --- a/scd/ChangeLog +++ b/scd/ChangeLog @@ -1,3 +1,8 @@ +2004-01-29 Werner Koch + + * command.c (reset_notify): Release the application context and + close the reader. + 2004-01-28 Werner Koch * iso7816.c (iso7816_manage_security_env): New. 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); } } -- cgit v1.2.3