iasecc: pkcs15init: test for the wrong error code was used ...
in 'Delete SDO' procedure to ignore the 'SDO don not exist' error. Thanks to Gilles Blanc. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5422 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
dc55351767
commit
fc07974be8
|
@ -1223,7 +1223,7 @@ iasecc_pkcs15_delete_sdo (struct sc_profile *profile, struct sc_pkcs15_card *p15
|
|||
|
||||
rv = iasecc_sdo_get_data(card, sdo);
|
||||
if (rv < 0) {
|
||||
if (rv == SC_ERROR_OBJECT_NOT_FOUND)
|
||||
if (rv == SC_ERROR_DATA_OBJECT_NOT_FOUND)
|
||||
rv = SC_SUCCESS;
|
||||
|
||||
iasecc_sdo_free(card, sdo);
|
||||
|
|
Loading…
Reference in New Issue