From 59391fdce82810af4034c1fb314560affcd86b71 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Oct 2014 17:44:11 +0100 Subject: [PATCH] Treat single IP as a single IP. Issue: #106 Reported by: @citrin --- src/libutil/radix.c | 4 ++-- 1 file 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; } } -- 2.39.5