Merge pull request #3479 from tmael/ocsp_NULL
Check <hash> input parameter in GetCA
This commit is contained in:
commit
fcd73135f5
@ -4307,11 +4307,13 @@ Signer* GetCA(void* vp, byte* hash)
|
||||
WOLFSSL_CERT_MANAGER* cm = (WOLFSSL_CERT_MANAGER*)vp;
|
||||
Signer* ret = NULL;
|
||||
Signer* signers;
|
||||
word32 row = HashSigner(hash);
|
||||
word32 row = 0;
|
||||
|
||||
if (cm == NULL)
|
||||
if (cm == NULL || hash == NULL)
|
||||
return NULL;
|
||||
|
||||
row = HashSigner(hash);
|
||||
|
||||
if (wc_LockMutex(&cm->caLock) != 0)
|
||||
return ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user