From 70cb97c1163a68951e4447d79bcdf133390bb68f Mon Sep 17 00:00:00 2001 From: Stanislav Klima Date: Wed, 29 Jan 2020 17:30:57 +0100 Subject: [PATCH] NULL dereference. --- src/ssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index e107a2386..1639e1ef6 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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;