forked from wolfSSL/wolfssl
Merge pull request #6735 from anhu/lteq_0
Propose to convert a less than 0 to less than or equal to 0
This commit is contained in:
@@ -12052,7 +12052,7 @@ WOLFSSL_API int wc_PKCS7_DecodeAuthEnvelopedData(PKCS7* pkcs7, byte* in,
|
|||||||
encodedAttribs = pkiMsg + idx;
|
encodedAttribs = pkiMsg + idx;
|
||||||
idx++;
|
idx++;
|
||||||
|
|
||||||
if (GetLength(pkiMsg, &idx, &length, pkiMsgSz) < 0)
|
if (GetLength(pkiMsg, &idx, &length, pkiMsgSz) <= 0)
|
||||||
ret = ASN_PARSE_E;
|
ret = ASN_PARSE_E;
|
||||||
#ifndef NO_PKCS7_STREAM
|
#ifndef NO_PKCS7_STREAM
|
||||||
pkcs7->stream->expected = length;
|
pkcs7->stream->expected = length;
|
||||||
|
Reference in New Issue
Block a user