summaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-07-08 05:26:51 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2019-07-08 05:26:51 +0200
commit39c40e572c5632f836d089dce49224f947244bf2 (patch)
treeec2458565d6b51fbca60c70412763c34012611d0 /scd/app.c
parentgpg: With --auto-key-retrieve prefer WKD over keyservers. (diff)
downloadgnupg2-39c40e572c5632f836d089dce49224f947244bf2.tar.xz
gnupg2-39c40e572c5632f836d089dce49224f947244bf2.zip
scd: Fix keygrip search.
* scd/app.c (app_do_with_keygrip): Break the entire loop. Fixes-commit: 5a5288d051a551a1a8f169225e62572f6ee8cb10 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to '')
-rw-r--r--scd/app.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index ed7adc3a3..57c4b7743 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -1706,10 +1706,12 @@ app_do_with_keygrip (ctrl_t ctrl, int action, const char *keygrip_str)
err = a->fnc.with_keygrip (a, ctrl, action, keygrip_str);
unlock_card (c);
if (!err)
- break;
+ goto leave_the_loop;
}
}
+ leave_the_loop:
+
/* FIXME: Add app switching logic. The above code assumes that the
* actions can be performend without switching. This needs to be
* checked. */