fixed 333708 Dereference after null check
This commit is contained in:
parent
ba185954c5
commit
8fbd0b3ee1
|
@ -1453,7 +1453,7 @@ pkcs15_create_tokens(struct sc_pkcs11_card *p11card, struct sc_app_info *app_inf
|
|||
|
||||
/* Find out framework data corresponding to the given application */
|
||||
fw_data = get_fw_data(p11card, app_info, &idx);
|
||||
if (!fw_data) {
|
||||
if (!fw_data && p11card) {
|
||||
sc_log(context, "Create slot for the non-binded card");
|
||||
pkcs15_create_slot(p11card, NULL, NULL, app_info, &slot);
|
||||
return CKR_OK;
|
||||
|
|
Loading…
Reference in New Issue