From fed2bc5f727822a81163ffcafe0e5860f749864f Mon Sep 17 00:00:00 2001 From: Aaron Jense Date: Mon, 18 Mar 2019 13:18:04 -0600 Subject: [PATCH] Remove NULL check before pub and priv have a chance to be set --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 766f55e5d..166797937 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -23928,7 +23928,7 @@ int wolfSSL_DH_generate_key(WOLFSSL_DH* dh) #ifdef WOLFSSL_SMALL_STACK tmpRNG = (WC_RNG*)XMALLOC(sizeof(WC_RNG), NULL, DYNAMIC_TYPE_RNG); - if (tmpRNG == NULL || pub == NULL || priv == NULL) { + if (tmpRNG == NULL) { XFREE(tmpRNG, NULL, DYNAMIC_TYPE_RNG); return ret; }