]> source.dussan.org Git - rspamd.git/commitdiff
Set length properly.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 29 Oct 2014 15:39:53 +0000 (15:39 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 29 Oct 2014 15:39:53 +0000 (15:39 +0000)
src/libutil/addr.c

index 1257fb98f787b377a25c48eacd5979fedac2781c..4af1dd6753e0c4f300b9c23a4ba01c74be8c7cab 100644 (file)
@@ -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 ++;
                }