hx509: Quiet static analyzer false positives

This commit is contained in:
Nicolas Williams
2023-01-03 20:39:35 -06:00
parent 86af011f0b
commit 06fdd14d4d

View File

@@ -1179,6 +1179,7 @@ hx509_ca_tbs_add_san_permanentIdentifier_string(hx509_context context,
char *freeme, *p;
int ret;
memset(&oid, 0, sizeof(oid));
if ((freeme = strdup(str)) == NULL)
return hx509_enomem(context);
@@ -1287,6 +1288,7 @@ hx509_ca_tbs_add_san_hardwareModuleName_string(hx509_context context,
char *freeme, *p;
int ret;
memset(&oid, 0, sizeof(oid));
if ((freeme = strdup(str)) == NULL)
return hx509_enomem(context);