From: Vsevolod Stakhov Date: Thu, 12 May 2016 10:41:44 +0000 (+0100) Subject: [Minor] 8 bytes fits perfect for mumhash X-Git-Tag: 1.3.0~485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57d8d8f8cbaff95ec64c3e281043849fa490ee2d;p=thirdparty%2Frspamd.git [Minor] 8 bytes fits perfect for mumhash --- diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 162fcd6622..c6eb3310a3 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); }