From ebb8d1787fe6fdf0afb9cc74be10714485d869d1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 29 Oct 2014 15:39:53 +0000 Subject: [PATCH] Set length properly. --- src/libutil/addr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libutil/addr.c b/src/libutil/addr.c index 1257fb98f..4af1dd675 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -337,6 +337,7 @@ rspamd_parse_host_port_priority_strv (gchar **tokens, memcpy (&cur_addr->addr, cur->ai_addr, MIN (sizeof (cur_addr->addr), cur->ai_addrlen)); cur_addr->af = cur->ai_family; + cur_addr->slen = cur->ai_addrlen; cur = cur->ai_next; addr_cnt ++; } -- 2.39.5