diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-13 17:44:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-13 17:44:11 +0100 |
commit | 59391fdce82810af4034c1fb314560affcd86b71 (patch) | |
tree | d48895f8bc58dd7cb5d81fe9c672e7b65201824e /src/libutil/radix.c | |
parent | 9e4d4b80b489e0e4cb7a6a7e2aae85f98772da57 (diff) | |
download | rspamd-59391fdce82810af4034c1fb314560affcd86b71.tar.gz rspamd-59391fdce82810af4034c1fb314560affcd86b71.zip |
Treat single IP as a single IP.
Issue: #106
Reported by: @citrin
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r-- | src/libutil/radix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c index c58125003..a71c3abc9 100644 --- a/src/libutil/radix.c +++ b/src/libutil/radix.c @@ -897,7 +897,7 @@ rspamd_radix_add_iplist (const gchar *list, const gchar *separators, gchar *token, *ipnet, *err_str, **strv, **cur; struct in_addr ina; struct in6_addr ina6; - guint k = 0; + guint k = G_MAXINT; gint af; gint res = 0; @@ -923,7 +923,7 @@ rspamd_radix_add_iplist (const gchar *list, const gchar *separators, "invalid netmask, error detected on symbol: %s, erorr: %s", err_str, strerror (errno)); - k = 32; + k = G_MAXINT; } } |