mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
scd: Fix direct use of card with no ctrl->card_ctx.
* scd/app.c (maybe_switch_app): Remove check of ref_count. -- Fixes-commit: 0d6b4210cf31d1c3ca0e8b034537a158fe3caca8 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
b2a6e5b516
commit
50ad29f9a7
@ -1614,7 +1614,7 @@ maybe_switch_app (ctrl_t ctrl, card_t card, const char *keyref)
|
|||||||
app_t app_prev = NULL;
|
app_t app_prev = NULL;
|
||||||
apptype_t apptype;
|
apptype_t apptype;
|
||||||
|
|
||||||
if (!card->ref_count || !card->app)
|
if (!card->app)
|
||||||
return gpg_error (GPG_ERR_CARD_NOT_INITIALIZED);
|
return gpg_error (GPG_ERR_CARD_NOT_INITIALIZED);
|
||||||
if (!ctrl->current_apptype)
|
if (!ctrl->current_apptype)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user