Return SC_SUCCESS in openpgp_card_reader_lock_obtained
prevents locking the card forever in case of a problem
This commit is contained in:
parent
50a35c1bae
commit
8ee2c61932
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue