diff options
Diffstat (limited to 'scd')
-rw-r--r-- | scd/app.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2756,6 +2756,9 @@ send_card_and_app_list (ctrl_t ctrl, card_t wantcard, int with_apps) card_t *cardlist = NULL; int n, ncardlist; + if (wantcard) + return send_serialno_and_app_status (wantcard, with_apps, ctrl); + card_list_r_lock (); for (n=0, c = card_top; c; c = c->next) n++; @@ -2780,7 +2783,6 @@ send_card_and_app_list (ctrl_t ctrl, card_t wantcard, int with_apps) if (wantcard && wantcard != card) continue; - lock_card (card, ctrl); err = send_serialno_and_app_status (card, with_apps, ctrl); unlock_card (card); |