From 57d8d8f8cbaff95ec64c3e281043849fa490ee2d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 12 May 2016 11:41:44 +0100 Subject: [Minor] 8 bytes fits perfect for mumhash --- src/libcryptobox/cryptobox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcryptobox') 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); } -- cgit v1.2.3