aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libcryptobox/cryptobox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c
index 08ae1fd8f..9e2d4b9cd 100644
--- a/src/libcryptobox/cryptobox.c
+++ b/src/libcryptobox/cryptobox.c
@@ -1449,6 +1449,7 @@ rspamd_cryptobox_fast_hash_update (rspamd_cryptobox_fast_hash_state_t *st,
len -= n;
rst->h = mum_hash_step (rst->h, rst->buf);
rst->buf = 0;
+ rst->pos = 0;
}
while (len > 8) {
@@ -1482,7 +1483,7 @@ rspamd_cryptobox_fast_hash_final (rspamd_cryptobox_fast_hash_state_t *st)
rst->h = mum_hash_step (rst->h, rst->buf);
}
- return rst->h;
+ return mum_hash_finish (rst->h);
}
/**