initialize id_icc to NULL if not given

This commit is contained in:
Frank Morgner
2016-05-25 15:33:08 +02:00
parent 088d99f306
commit 3b6bb19210

View File

@@ -304,7 +304,8 @@ npa_sm_ctx_create(EAC_CTX *ctx, const unsigned char *certificate_description,
out->id_icc = BUF_MEM_create_init(id_icc, id_icc_length);
if (!out->id_icc)
goto err;
}
} else
out->id_icc = NULL;
out->eph_pub_key = NULL;
out->auxiliary_data = NULL;