From 833e1001e9097dec5ea136d434506e7660545611 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 24 Jan 2016 23:51:57 +0000 Subject: [PATCH] Erm, fix issue with length calculation --- src/libutil/addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/addr.c b/src/libutil/addr.c index d6b73d603..baa221c47 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; } -- 2.39.5