initialize id_icc to NULL if not given
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user