Fix to ensure args->dCert is set for ProcessPeerCertParse.

This commit is contained in:
David Garske
2022-04-21 14:16:04 -07:00
parent a6a89d3316
commit c41b1b1b9b

View File

@ -11696,7 +11696,7 @@ static int ProcessPeerCertParse(WOLFSSL* ssl, ProcPeerCertArgs* args,
int sigRet = 0; int sigRet = 0;
#endif #endif
if (ssl == NULL || args == NULL) if (ssl == NULL || args == NULL || args->dCert == NULL)
return BAD_FUNC_ARG; return BAD_FUNC_ARG;
/* check to make sure certificate index is valid */ /* check to make sure certificate index is valid */