keep length value after call to wc_BerToDer

pull/1664/head
Jacob Barthelmeh 2018-07-05 14:35:35 -06:00
parent ae54bae2fa
commit e44cb91a3b
1 changed files with 0 additions and 1 deletions

View File

@ -4466,7 +4466,6 @@ WOLFSSL_API int wc_PKCS7_DecodeEnvelopedData(PKCS7* pkcs7, byte* pkiMsg,
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;