1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00

(reset_notify): Release the application context and

close the reader.
This commit is contained in:
Werner Koch 2004-01-29 20:17:51 +00:00
parent b11106ebf0
commit 94c03c860e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-01-29 Werner Koch <wk@gnupg.org>
* command.c (reset_notify): Release the application context and
close the reader.
2004-01-28 Werner Koch <wk@gnupg.org>
* iso7816.c (iso7816_manage_security_env): New.

View File

@ -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);
}
}