]> source.dussan.org Git - rspamd.git/commitdiff
Set sockaddr.sa_family properly.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Nov 2014 16:15:04 +0000 (16:15 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Nov 2014 16:15:04 +0000 (16:15 +0000)
src/libutil/addr.c

index f1eee9f40b535ff05b751efe0ede2164774f07cc..4234561b0d1e01a309445b6375eeac1dc38c7dfa 100644 (file)
@@ -385,6 +385,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->addr.sa.sa_family = cur->ai_family;
                        cur_addr->slen = cur->ai_addrlen;
                        cur = cur->ai_next;
                        addr_cnt ++;