Fixed CID 587445.

This commit is contained in:
Martin Kinčl
2021-03-06 00:58:39 +01:00
parent db275268a1
commit 5efd0bf2a4

View File

@@ -31897,6 +31897,7 @@ int SetDhExternal(WOLFSSL_DH *dh)
if (dh == NULL || dh->internal == NULL) { if (dh == NULL || dh->internal == NULL) {
WOLFSSL_MSG("dh key NULL error"); WOLFSSL_MSG("dh key NULL error");
return WOLFSSL_FATAL_ERROR;
} }
key = (DhKey*)dh->internal; key = (DhKey*)dh->internal;