mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Improve scan-build fix for ProcessPeerCertParse
checking of empty dCert
. With WOLFSSL_SMALL_CERT_VERIFY
it is NULL.
This commit is contained in:
@ -11700,8 +11700,13 @@ static int ProcessPeerCertParse(WOLFSSL* ssl, ProcPeerCertArgs* args,
|
||||
int sigRet = 0;
|
||||
#endif
|
||||
|
||||
if (ssl == NULL || args == NULL || args->dCert == NULL)
|
||||
if (ssl == NULL || args == NULL
|
||||
#ifndef WOLFSSL_SMALL_CERT_VERIFY
|
||||
|| args->dCert == NULL
|
||||
#endif
|
||||
) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
/* check to make sure certificate index is valid */
|
||||
if (args->certIdx > args->count)
|
||||
|
Reference in New Issue
Block a user