mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 00:42:21 +01:00
src/ssl_load.c: in ProcessBufferCert(), check ctx for nullness before accessing ctx->verifyNone (fixes -Wnull-dereference reported by multi-test dtls-no-rsa-no-dh after merge of 36e66eb763).
This commit is contained in:
@@ -2064,7 +2064,7 @@ static int ProcessBufferCert(WOLFSSL_CTX* ctx, WOLFSSL* ssl, DerBuffer* der)
|
||||
}
|
||||
/* Don't check if no SSL object verification is disabled for SSL
|
||||
* context. */
|
||||
else if ((ssl == NULL) && ctx->verifyNone) {
|
||||
else if ((ssl == NULL) && (ctx != NULL) && ctx->verifyNone) {
|
||||
checkKeySz = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user