forked from wolfSSL/wolfssl
Merge pull request #600 from kaleb-himes/scan-build-async
Check for sigLen size to resolve scan-build warning.
This commit is contained in:
@ -17565,6 +17565,9 @@ int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
case rsa_sa_algo:
|
||||
{
|
||||
if (verifySig == NULL) {
|
||||
if (ssl->sigLen == 0) {
|
||||
ERROR_OUT(BAD_COND_E, exit_sske);
|
||||
}
|
||||
verifySig = (byte*)XMALLOC(ssl->sigLen, ssl->heap,
|
||||
DYNAMIC_TYPE_TMP_BUFFER);
|
||||
if (!verifySig) {
|
||||
@ -17611,6 +17614,9 @@ int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
}
|
||||
|
||||
if (verifySig == NULL) {
|
||||
if (ssl->sigLen == 0) {
|
||||
ERROR_OUT(BAD_COND_E, exit_sske);
|
||||
}
|
||||
verifySig = (byte*)XMALLOC(ssl->sigLen, ssl->heap,
|
||||
DYNAMIC_TYPE_TMP_BUFFER);
|
||||
if (!verifySig) {
|
||||
|
Reference in New Issue
Block a user