Skip to content

Commit

Permalink
revert null check in wc_Sha256Update
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Mar 15, 2024
1 parent 2f43cc1 commit ab8f5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wolfcrypt/src/sha256.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ab8f5f7

Please sign in to comment.