fixed 333708 Dereference after null check

This commit is contained in:
Frank Morgner 2019-03-06 00:37:01 +01:00
parent ba185954c5
commit 8fbd0b3ee1
1 changed files with 1 additions and 1 deletions

View File

@ -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;