Remove unused dNSName malloc from wolfSSL_X509_get_ext_d2i

This commit is contained in:
Carie Pointer
2019-12-10 17:00:16 -07:00
parent b08d180bc9
commit c66ca1b774

View File

@ -9303,13 +9303,6 @@ void* wolfSSL_X509_get_ext_d2i(const WOLFSSL_X509* x509, int nid, int* c,
wolfSSL_sk_free(sk); wolfSSL_sk_free(sk);
return NULL; return NULL;
} }
gn->d.dNSName = wolfSSL_ASN1_STRING_new();
if (gn->d.dNSName == NULL) {
WOLFSSL_MSG("ASN1_STRING_new failed\n");
wolfSSL_GENERAL_NAME_free(gn);
wolfSSL_sk_free(sk);
return NULL;
}
gn->type = dns->type; gn->type = dns->type;
gn->d.ia5->length = dns->len; gn->d.ia5->length = dns->len;