From: Vsevolod Stakhov Date: Tue, 14 Apr 2015 12:43:10 +0000 (+0100) Subject: Fix xxhash invocation. X-Git-Tag: 0.9.0~261 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=43ed41fdd22d283e5d1939116c8270d07b49cf35;p=rspamd.git Fix xxhash invocation. --- diff --git a/contrib/xxhash/xxhash.c b/contrib/xxhash/xxhash.c index 15064f9fb..7259878d6 100644 --- a/contrib/xxhash/xxhash.c +++ b/contrib/xxhash/xxhash.c @@ -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; } diff --git a/src/libutil/util.c b/src/libutil/util.c index 640610a83..383842a07 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -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); }