pkcs15-authentic: Do not confuse static analyzers

This commit is contained in:
Jakub Jelen 2018-09-27 15:56:16 +02:00 committed by Frank Morgner
parent 52959df9f6
commit ef724e1e57
1 changed files with 4 additions and 1 deletions

View File

@ -555,7 +555,10 @@ authentic_pkcs15_create_key(struct sc_profile *profile, struct sc_pkcs15_card *p
| SC_PKCS15_PRKEY_ACCESS_SENSITIVE;
rv = authentic_sdo_allocate_prvkey(profile, card, key_info, &sdo);
LOG_TEST_RET(ctx, rv, "IasEcc: init SDO private key failed");
if (rv != SC_SUCCESS || sdo == NULL) {
sc_log(ctx, "IasEcc: init SDO private key failed");
LOG_FUNC_RETURN(ctx, rv);
}
rv = sc_card_ctl(card, SC_CARDCTL_AUTHENTIC_SDO_CREATE, sdo);
if (rv == SC_ERROR_FILE_ALREADY_EXISTS) {