diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-23 22:13:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-23 22:13:39 +0000 |
commit | 7fcf40d88893e07a26cde8d266a18f0ac6b30ccd (patch) | |
tree | 5fa86fc2f146b7f108c847aabd6377cc0bd01deb /src/libutil/addr.c | |
parent | 59d6fe4f5787005f48bfd9fe32d5b85e763312b4 (diff) | |
download | rspamd-7fcf40d88893e07a26cde8d266a18f0ac6b30ccd.tar.gz rspamd-7fcf40d88893e07a26cde8d266a18f0ac6b30ccd.zip |
Use port when calculating listen socket hash.
Diffstat (limited to 'src/libutil/addr.c')
-rw-r--r-- | src/libutil/addr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c index e115072b1..38e5ac4fa 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -960,10 +960,11 @@ rspamd_inet_address_compare (const rspamd_inet_addr_t *a1, } gint -rspamd_inet_address_compare_ptr (const gpointer a1, - const gpointer a2) +rspamd_inet_address_compare_ptr (gconstpointer a1, + gconstpointer a2) { - const rspamd_inet_addr_t **i1 = a1, **i2 = a2; + const rspamd_inet_addr_t **i1 = (const rspamd_inet_addr_t **)a1, + **i2 = (const rspamd_inet_addr_t **)a2; return rspamd_inet_address_compare (*i1, *i2); } |