Merge pull request #2168 from aaronjense/master

Remove NULL check before pub and priv have a chance to be set
This commit is contained in:
Chris Conlon
2019-03-22 16:34:34 -06:00
committed by GitHub

View File

@ -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;
}