Skip to content

Commit cd3e81a

Browse files
committed
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 36e66eb).
1 parent b42e9a9 commit cd3e81a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl_load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ static int ProcessBufferCert(WOLFSSL_CTX* ctx, WOLFSSL* ssl, DerBuffer* der)
20642064
}
20652065
/* Don't check if no SSL object verification is disabled for SSL
20662066
* context. */
2067-
else if ((ssl == NULL) && ctx->verifyNone) {
2067+
else if ((ssl == NULL) && (ctx != NULL) && ctx->verifyNone) {
20682068
checkKeySz = 0;
20692069
}
20702070

0 commit comments

Comments
 (0)