wolfcrypt/src/pkcs7.c: fixes for cppcheck complaints: nullPointerArithmeticRedundantCheck

This commit is contained in:
Daniel Pouzzner
2022-01-08 00:31:07 -06:00
parent dc98f4dd30
commit 9e76ec8855

View File

@@ -2718,7 +2718,7 @@ static int PKCS7_EncodeSigned(PKCS7* pkcs7, ESD* esd,
XMEMCPY(output2 + idx, esd->encContentDigest, esd->encContentDigestSz);
idx += esd->encContentDigestSz;
if (output2 && output2Sz) {
if (output2Sz) {
*output2Sz = idx;
idx = 0; /* success */
}