mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +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;
|
int sigRet = 0;
|
||||||
#endif
|
#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;
|
return BAD_FUNC_ARG;
|
||||||
|
}
|
||||||
|
|
||||||
/* check to make sure certificate index is valid */
|
/* check to make sure certificate index is valid */
|
||||||
if (args->certIdx > args->count)
|
if (args->certIdx > args->count)
|
||||||
|
Reference in New Issue
Block a user