From 1b13178182cf1c25c0d01a537b6626824d41dabc Mon Sep 17 00:00:00 2001 From: Stanislav Klima Date: Wed, 12 Feb 2020 13:46:12 +0100 Subject: [PATCH] Fixes possible compile error if NO_PKCS7_STREAM is defined. --- wolfcrypt/src/pkcs7.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfcrypt/src/pkcs7.c b/wolfcrypt/src/pkcs7.c index 3a79d8fc9..6b6c3ecaa 100644 --- a/wolfcrypt/src/pkcs7.c +++ b/wolfcrypt/src/pkcs7.c @@ -11419,7 +11419,9 @@ authenv_atrbend: XFREE(decryptedKey, pkcs7->heap, DYNAMIC_TYPE_PKCS7); decryptedKey = NULL; #ifdef WOLFSSL_SMALL_STACK + #ifndef NO_PKCS7_STREAM pkcs7->stream->key = NULL; + #endif #endif #endif ret = encryptedContentSz;