summaryrefslogtreecommitdiffstats
path: root/src/crypto/sha/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/sha/sha1.c')
-rw-r--r--src/crypto/sha/sha1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/sha/sha1.c b/src/crypto/sha/sha1.c
index 7595bc8..60d09f6 100644
--- a/src/crypto/sha/sha1.c
+++ b/src/crypto/sha/sha1.c
@@ -367,8 +367,9 @@ static void HASH_BLOCK_DATA_ORDER(SHA_CTX *c, const void *p, size_t num) {
c->h3 = (c->h3 + B) & 0xffffffffL;
c->h4 = (c->h4 + C) & 0xffffffffL;
- if (--num == 0)
+ if (--num == 0) {
break;
+ }
A = c->h0;
B = c->h1;