mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user