From e3aafd4a74704ff7ca5c8c81b064c634f71fc3c4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 11 Nov 2014 16:15:04 +0000 Subject: [PATCH] Set sockaddr.sa_family properly. --- src/libutil/addr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libutil/addr.c b/src/libutil/addr.c index f1eee9f40..4234561b0 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -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 ++; -- 2.39.5