]> source.dussan.org Git - rspamd.git/commitdiff
Erm, fix issue with length calculation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 Jan 2016 23:51:57 +0000 (23:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 Jan 2016 23:51:57 +0000 (23:51 +0000)
src/libutil/addr.c

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