diff options
-rw-r--r-- | crypto/sha2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha2.c b/crypto/sha2.c index 26162e83e6..00a1af3419 100644 --- a/crypto/sha2.c +++ b/crypto/sha2.c @@ -208,7 +208,7 @@ static void sha2_update(sha2_context * ctx, const uint8_t * input, size_t length size_t fill; uint32_t left; - if (length <= 0) + if (length == 0) return; left = ctx->total[0] & 0x3F; |