From ab8f5f71a03d23e1d08a4e44afc8d75639567fb5 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Sat, 16 Mar 2024 02:03:07 +0700 Subject: [PATCH] revert null check in wc_Sha256Update --- wolfcrypt/src/sha256.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/sha256.c b/wolfcrypt/src/sha256.c index 839b09dcab..0025e85727 100644 --- a/wolfcrypt/src/sha256.c +++ b/wolfcrypt/src/sha256.c @@ -617,7 +617,7 @@ static int InitSha256(wc_Sha256* sha256) { int ret = 0; - if (sha224 == NULL || (data == NULL && len > 0)) { + if (sha256 == NULL || (data == NULL && len > 0)) { return BAD_FUNC_ARG; }