diff --git a/src/internal.c b/src/internal.c index 2097f3ff1..7ef2d8769 100644 --- a/src/internal.c +++ b/src/internal.c @@ -11548,7 +11548,8 @@ static int SanityCheckMsgReceived(WOLFSSL* ssl, byte type) #ifndef NO_PSK if (ssl->specs.kea == psk_kea && - ssl->arrays->server_hint[0] == 0) + ssl->arrays != NULL && + ssl->arrays->server_hint[0] == 0) pskNoServerHint = 1; #endif if (ssl->specs.static_ecdh == 1 ||