Return SC_SUCCESS in openpgp_card_reader_lock_obtained

prevents locking the card forever in case of a problem
This commit is contained in:
Frank Morgner 2018-02-07 16:41:52 +01:00
parent 50a35c1bae
commit 8ee2c61932
1 changed files with 1 additions and 0 deletions

View File

@ -2890,6 +2890,7 @@ static int pgp_card_reader_lock_obtained(sc_card_t *card, int was_reset)
/* reselect is required */
was_reset = 1;
}
r = SC_SUCCESS;
}
if (was_reset > 0) {