]> source.dussan.org Git - rspamd.git/commitdiff
Treat single IP as a single IP.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Oct 2014 16:44:11 +0000 (17:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Oct 2014 16:44:11 +0000 (17:44 +0100)
Issue: #106
Reported by: @citrin

src/libutil/radix.c

index c58125003e1ea5f3dcf61a8c4585e86e11e54afd..a71c3abc9c571c74d79c49632270a8c79630dad2 100644 (file)
@@ -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;
                        }
                }