diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-03 17:08:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-03 17:08:04 +0100 |
commit | 5e1cff52d87522e66b7915a89e769ae0149eddd3 (patch) | |
tree | 3864055dbf82e8fed294a55572c5f8761e06cb14 /src/util.c | |
parent | 56d1dfa2b190efa63ff3848f94d1755585cff736 (diff) | |
download | rspamd-5e1cff52d87522e66b7915a89e769ae0149eddd3.tar.gz rspamd-5e1cff52d87522e66b7915a89e769ae0149eddd3.zip |
Correctly use ai_family for socket(2) call.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index 4a8f1aa05..56f6c5f26 100644 --- a/src/util.c +++ b/src/util.c @@ -95,7 +95,7 @@ make_inet_socket (gint type, struct addrinfo *addr, gboolean is_server, gboolean cur = addr; while (cur) { /* Create socket */ - fd = socket (cur->ai_protocol, type, 0); + fd = socket (cur->ai_family, type, 0); if (fd == -1) { msg_warn ("socket failed: %d, '%s'", errno, strerror (errno)); goto out; |