Browse Source

Merge pull request #7342 from JacobBarthelmeh/testing1

revert null check in wc_Sha256Update
David Garske 2 months ago
parent
commit
99dd8a333d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wolfcrypt/src/sha256.c

+ 1 - 1
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;
         }