From 67b67cb17143f84bf7df99f5e0950fc2f550a5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 23 Jul 2015 10:12:22 +0200 Subject: Fix immediate connects Apparently FreeBSD can do this while Linux can not. --- common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common.c') diff --git a/common.c b/common.c index d30ef30..fdf0db6 100644 --- a/common.c +++ b/common.c @@ -205,7 +205,7 @@ connector_step (struct connector *self) connector_notify_connecting (self, target, gai_iter); - int fd = self->socket = socket (gai_iter->ai_family, + int fd = socket (gai_iter->ai_family, gai_iter->ai_socktype, gai_iter->ai_protocol); if (fd == -1) { -- cgit v1.2.3