From 39c40e572c5632f836d089dce49224f947244bf2 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 8 Jul 2019 12:26:51 +0900 Subject: scd: Fix keygrip search. * scd/app.c (app_do_with_keygrip): Break the entire loop. Fixes-commit: 5a5288d051a551a1a8f169225e62572f6ee8cb10 Signed-off-by: NIIBE Yutaka --- scd/app.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. */ -- cgit v1.2.3