mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
scd: Fix APP reference counting.
* scd/app.c (scd_update_reader_status_file): Don't call another release_application_internal. * scd/command.c (open_card_with_request): Don't require APPTYPE != NULL. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
bb5ceb78c3
commit
9b06633c81
@ -1049,7 +1049,6 @@ scd_update_reader_status_file (void)
|
|||||||
{
|
{
|
||||||
log_debug ("Removal of a card: %d\n", a->slot);
|
log_debug ("Removal of a card: %d\n", a->slot);
|
||||||
apdu_close_reader (a->slot);
|
apdu_close_reader (a->slot);
|
||||||
release_application_internal (a);
|
|
||||||
deallocate_app (a);
|
deallocate_app (a);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -221,7 +221,7 @@ open_card_with_request (ctrl_t ctrl, const char *apptype, const char *serialno)
|
|||||||
/* If we are already initialized for one specific application we
|
/* If we are already initialized for one specific application we
|
||||||
need to check that the client didn't requested a specific
|
need to check that the client didn't requested a specific
|
||||||
application different from the one in use before we continue. */
|
application different from the one in use before we continue. */
|
||||||
if (apptype && ctrl->app_ctx)
|
if (ctrl->app_ctx)
|
||||||
return check_application_conflict (apptype, ctrl->app_ctx);
|
return check_application_conflict (apptype, ctrl->app_ctx);
|
||||||
|
|
||||||
if (serialno)
|
if (serialno)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user