added error checking
This commit is contained in:
parent
9a82ddea8a
commit
00daa3f535
|
@ -1156,7 +1156,7 @@ static int westcos_sign_decipher(int mode, sc_card_t *card,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
r = sc_select_file(card, &(priv_data->env.file_ref), &keyfile);
|
r = sc_select_file(card, &(priv_data->env.file_ref), &keyfile);
|
||||||
if (r)
|
if (r || !keyfile)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in New Issue