]> source.dussan.org Git - rspamd.git/commitdiff
Fix xxhash invocation.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Apr 2015 12:43:10 +0000 (13:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Apr 2015 12:43:10 +0000 (13:43 +0100)
contrib/xxhash/xxhash.c
src/libutil/util.c

index 15064f9fb673f24fe157551c001b8c8c6b04ddad..7259878d6ae4e60a2ceeb597ec0c5e05d8acc2c9 100644 (file)
@@ -920,8 +920,9 @@ FORCE_INLINE U64 XXH64_digest_endian (const XXH64_state_t* state_in, XXH_endiane
     h64 ^= h64 >> 29;
     h64 *= PRIME64_3;
     h64 ^= h64 >> 32;
-
+#if 0
     XXH64_freeState((XXH64_state_t *)state_in);
+#endif
     return h64;
 }
 
index 640610a830dda3d59a35776e4d100e2f7676026b..383842a0747ba57f6799c91207a7433496253db9 100644 (file)
@@ -1550,7 +1550,7 @@ rspamd_url_hash (gconstpointer u)
        if (url->userlen > 0) {
                XXH64_update (&st, url->user, url->userlen);
        }
-       XXH64_update (&st, url->is_phished, sizeof (url->is_phished));
+       XXH64_update (&st, &url->is_phished, sizeof (url->is_phished));
 
        return XXH64_digest (&st);
 }