summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/xxhash/xxhash.c3
-rw-r--r--src/libutil/util.c2
2 files changed, 3 insertions, 2 deletions
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);
}