Skip to content

Commit 2e1a2b9

Browse files
committed
remove unused tempBuf = NULL
1 parent adc7b81 commit 2e1a2b9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

wolfcrypt/src/pkcs7.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5693,7 +5693,6 @@ static int wc_PKCS7_HandleOctetStrings(wc_PKCS7* pkcs7, byte* in, word32 inSz,
56935693
WOLFSSL_MSG("failed to grow content buffer.");
56945694
if (tempBuf != NULL) {
56955695
XFREE(tempBuf, pkcs7->heap, DYNAMIC_TYPE_PKCS7);
5696-
tempBuf = NULL;
56975696
}
56985697
ret = MEMORY_E;
56995698
break;
@@ -5707,7 +5706,6 @@ static int wc_PKCS7_HandleOctetStrings(wc_PKCS7* pkcs7, byte* in, word32 inSz,
57075706
pkcs7->stream->expected);
57085707
if (tempBuf != NULL) {
57095708
XFREE(tempBuf, pkcs7->heap, DYNAMIC_TYPE_PKCS7);
5710-
tempBuf = NULL;
57115709
}
57125710
}
57135711
}

0 commit comments

Comments
 (0)