Remove NULL check before pub and priv have a chance to be set

This commit is contained in:
Aaron Jense
2019-03-18 13:18:04 -06:00
parent 0ef4b7e933
commit fed2bc5f72

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