NULL dereference.

This commit is contained in:
Stanislav Klima
2020-01-29 17:30:57 +01:00
parent 972790fb86
commit 70cb97c116

View File

@ -24999,6 +24999,10 @@ WOLFSSL_ASN1_INTEGER* wolfSSL_ASN1_INTEGER_dup(const WOLFSSL_ASN1_INTEGER* src)
return NULL;
dup = wolfSSL_ASN1_INTEGER_new();
if (dup == NULL)
return NULL;
dup->negative = src->negative;
dup->dataMax = src->dataMax;
dup->isDynamic = src->isDynamic;