mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
fix case in PKCS7_VerifySignedData where pkiMsgSz may not be set correctly
This commit is contained in:
@ -4563,14 +4563,14 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
|
|||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
idx += length;
|
idx += length;
|
||||||
|
|
||||||
pkiMsg2 = pkiMsg;
|
|
||||||
pkiMsg2Sz = pkiMsgSz;
|
|
||||||
#ifndef NO_PKCS7_STREAM
|
|
||||||
pkcs7->stream->varOne = pkiMsg2Sz;
|
|
||||||
pkcs7->stream->flagOne = 1;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkiMsg2 = pkiMsg;
|
||||||
|
pkiMsg2Sz = pkiMsgSz;
|
||||||
|
#ifndef NO_PKCS7_STREAM
|
||||||
|
pkcs7->stream->varOne = pkiMsg2Sz;
|
||||||
|
pkcs7->stream->flagOne = 1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user