mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 14:40:50 +02:00
fix error case in d2iTryAltDhKey
This commit is contained in:
@@ -708,7 +708,7 @@ static int d2iTryAltDhKey(WOLFSSL_EVP_PKEY** out, const unsigned char* mem,
|
||||
/* Create DH key object from data. */
|
||||
dhObj = wolfSSL_DH_new();
|
||||
if (dhObj == NULL) {
|
||||
ret = 0;
|
||||
ret = WOLFSSL_FATAL_ERROR;
|
||||
}
|
||||
|
||||
if (ret == 1) {
|
||||
|
||||
Reference in New Issue
Block a user