mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 04:02:18 +01:00
check if ctx and ssl are null when checking public key in certificate
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user