fix case in PKCS7_VerifySignedData where pkiMsgSz may not be set correctly

This commit is contained in:
Chris Conlon
2020-10-21 15:12:41 -07:00
parent f75dc4727d
commit df382f382f

View File

@ -4563,6 +4563,7 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
if (ret == 0) {
idx += length;
}
pkiMsg2 = pkiMsg;
pkiMsg2Sz = pkiMsgSz;
@ -4572,7 +4573,6 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
#endif
}
}
}
else {
pkiMsg2 = pkiMsg;
pkiMsg2Sz = pkiMsgSz;