]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] 8 bytes fits perfect for mumhash
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 12 May 2016 10:41:44 +0000 (11:41 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 12 May 2016 10:41:44 +0000 (11:41 +0100)
src/libcryptobox/cryptobox.c

index 162fcd6622d4f6ee5745a43208aaacf983e4dd94..c6eb3310a38d96f668979d4e9a70907a64f75966 100644 (file)
@@ -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);
        }