fix error case in d2iTryAltDhKey

This commit is contained in:
Takashi Kojo
2026-03-13 10:47:35 +09:00
parent 7b5330391b
commit 4c04ba306b
+1 -1
View File
@@ -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) {