]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Skip invalid addresses when parsing IP lists
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Mar 2016 15:55:52 +0000 (15:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Mar 2016 15:55:52 +0000 (15:55 +0000)
src/libutil/radix.c

index 7dc0b8237da01b8bfec1cfb7d7f0d244f431016a..d52f4bf373f3cdca9739ec0fbcd5cc3177a188da 100644 (file)
@@ -184,6 +184,9 @@ rspamd_radix_add_iplist (const gchar *list, const gchar *separators,
                }
                else {
                        msg_warn_radix ("invalid IP address: %s", token);
+
+                       cur ++;
+                       continue;
                }
 
                if (af == AF_INET) {