diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-12 11:41:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-12 11:41:44 +0100 |
commit | 57d8d8f8cbaff95ec64c3e281043849fa490ee2d (patch) | |
tree | 3c11197176472f3e4069d488cb4be6cf33f054d8 /src/libcryptobox | |
parent | 0d47a9c3e54432db1bdefac389a4162db6382f6d (diff) | |
download | rspamd-57d8d8f8cbaff95ec64c3e281043849fa490ee2d.tar.gz rspamd-57d8d8f8cbaff95ec64c3e281043849fa490ee2d.zip |
[Minor] 8 bytes fits perfect for mumhash
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/cryptobox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 162fcd662..c6eb3310a 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -1459,7 +1459,7 @@ guint64 rspamd_cryptobox_fast_hash (const void *data, gsize len, guint64 seed) { - if (len > 8 && len % 8 == 0) { + if (len >= 8 && len % 8 == 0) { return rspamd_cryptobox_fast_hash_specific (RSPAMD_CRYPTOBOX_MUMHASH, data, len, seed); } |