summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-07-22 02:43:30 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2021-07-22 02:43:30 +0200
commit50ad29f9a72f5454067bd0ca34fc1a71ac06b831 (patch)
tree0a0b70ea51cfef54b351dd91ab2a37ab5861b3de
parentagent: Add translatable text for Caps Lock hint (diff)
downloadgnupg2-50ad29f9a72f5454067bd0ca34fc1a71ac06b831.tar.xz
gnupg2-50ad29f9a72f5454067bd0ca34fc1a71ac06b831.zip
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>
-rw-r--r--scd/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index a86b08cd2..fafd28cee 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -1614,7 +1614,7 @@ maybe_switch_app (ctrl_t ctrl, card_t card, const char *keyref)
app_t app_prev = NULL;
apptype_t apptype;
- if (!card->ref_count || !card->app)
+ if (!card->app)
return gpg_error (GPG_ERR_CARD_NOT_INITIALIZED);
if (!ctrl->current_apptype)
{