From: Vsevolod Stakhov Date: Sun, 24 Jan 2016 23:51:57 +0000 (+0000) Subject: Erm, fix issue with length calculation X-Git-Tag: 1.1.2~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=833e1001e9097dec5ea136d434506e7660545611;p=thirdparty%2Frspamd.git Erm, fix issue with length calculation --- diff --git a/src/libutil/addr.c b/src/libutil/addr.c index d6b73d603d..baa221c47d 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -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; }