From 2fd000532ab5a711d4f83196388db70bd4446e02 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 18 Jun 2018 11:48:45 -0700 Subject: [PATCH] A length value was set to zero in a situation where the existing value was needed. --- wolfcrypt/src/pkcs7.c | 1 - 1 file changed, 1 deletion(-) diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c index 5e7af23da..1a53a7eda 100644 --- a/wolfcrypt/src/pkcs7.c +++ b/wolfcrypt/src/pkcs7.c @@ -1864,7 +1864,6 @@ int wc_PKCS7_VerifySignedData(PKCS7* pkcs7, byte* pkiMsg, word32 pkiMsgSz) pkcs7->der = (byte*)XMALLOC(len, pkcs7->heap, DYNAMIC_TYPE_PKCS7); if (pkcs7->der == NULL) return MEMORY_E; - len = 0; ret = wc_BerToDer(pkiMsg, pkiMsgSz, pkcs7->der, &len); if (ret < 0) return ret;