Merge pull request #9506 from rlm2002/coverity

check if ctx and ssl are null when checking public key in certificate
This commit is contained in:
Sean Parkinson
2025-12-11 08:30:58 +10:00
committed by GitHub

View File

@@ -1607,6 +1607,9 @@ static int ProcessBufferCertPublicKey(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
#ifndef NO_RSA
word32 idx;
#endif
if (ctx == NULL && ssl == NULL) {
return BAD_FUNC_ARG;
}
/* Get key size and check unless not verifying. */
switch (cert->keyOID) {