From: Vsevolod Stakhov Date: Mon, 13 Oct 2014 16:44:11 +0000 (+0100) Subject: Treat single IP as a single IP. X-Git-Tag: 0.7.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59391fdce82810af4034c1fb314560affcd86b71;p=thirdparty%2Frspamd.git Treat single IP as a single IP. Issue: #106 Reported by: @citrin --- diff --git a/src/libutil/radix.c b/src/libutil/radix.c index c58125003e..a71c3abc9c 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; } }