]> source.dussan.org Git - rspamd.git/commitdiff
Same issue for [] addresses
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 25 Jan 2016 00:12:17 +0000 (00:12 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 25 Jan 2016 00:12:17 +0000 (00:12 +0000)
src/libutil/addr.c

index baa221c47dac28d453ff1bf129f286544746aae4..2324096e964a6b34738e71ba68adabc7473b00ff 100644 (file)
@@ -1047,7 +1047,7 @@ rspamd_parse_host_port_priority (const gchar *str,
                        return FALSE;
                }
 
-               name = p + 1;
+               name = str + 1;
                namelen = p - str - 1;
 
                if (!rspamd_check_port_priority (p + 1, default_port, priority, portbuf,