Propose to convert a less than 0 to less than or equal to 0
This commit is contained in:
parent
c5c968aae3
commit
354b28eea0
@ -12052,7 +12052,7 @@ WOLFSSL_API int wc_PKCS7_DecodeAuthEnvelopedData(PKCS7* pkcs7, byte* in,
|
||||
encodedAttribs = pkiMsg + idx;
|
||||
idx++;
|
||||
|
||||
if (GetLength(pkiMsg, &idx, &length, pkiMsgSz) < 0)
|
||||
if (GetLength(pkiMsg, &idx, &length, pkiMsgSz) <= 0)
|
||||
ret = ASN_PARSE_E;
|
||||
#ifndef NO_PKCS7_STREAM
|
||||
pkcs7->stream->expected = length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user