From c6dfce8ad8172568a663f6535ddb3cd8d501bcf5 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Thu, 5 Jan 2006 18:29:42 +0100 Subject: [PATCH] connect_socket(): set @pf at appropriate time. --- src/network/socket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/network/socket.c b/src/network/socket.c index 8a98bf4e1..928dd035d 100644 --- a/src/network/socket.c +++ b/src/network/socket.c @@ -538,7 +538,6 @@ connect_socket(struct socket *csocket, enum connection_state state) #ifdef CONFIG_IPV6 if (family == AF_INET6) { - pf = PF_INET6; if (!try_ipv6 || (force_family && force_family != 6)) { silent_fail = 1; continue; @@ -548,11 +547,11 @@ connect_socket(struct socket *csocket, enum connection_state state) } else #endif if (family == AF_INET) { - pf = PF_INET; if (!try_ipv4 || (force_family && force_family != 4)) { silent_fail = 1; continue; } + pf = PF_INET; } else { continue;