diff options
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index d774eb440..8ad073ae2 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -3126,7 +3126,7 @@ rspamd_url_hash (gconstpointer u) const struct rspamd_url *url = u; if (url->urllen > 0) { - return rspamd_cryptobox_fast_hash (url->string, url->urllen, + return (guint)rspamd_cryptobox_fast_hash (url->string, url->urllen, rspamd_hash_seed ()); } @@ -3139,7 +3139,7 @@ rspamd_url_host_hash (gconstpointer u) const struct rspamd_url *url = u; if (url->hostlen > 0) { - return rspamd_cryptobox_fast_hash (url->host, url->hostlen, + return (guint)rspamd_cryptobox_fast_hash (url->host, url->hostlen, rspamd_hash_seed ()); } @@ -3162,7 +3162,7 @@ rspamd_email_hash (gconstpointer u) rspamd_cryptobox_fast_hash_update (&st, url->user, url->userlen); } - return rspamd_cryptobox_fast_hash_final (&st); + return (guint)rspamd_cryptobox_fast_hash_final (&st); } /* Compare two emails for building emails tree */ |