1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

connect_socket(): set @pf at appropriate time.

This commit is contained in:
Laurent MONIN 2006-01-05 18:29:42 +01:00 committed by Laurent MONIN
parent 9e55cb0d2a
commit c6dfce8ad8

View File

@ -538,7 +538,6 @@ connect_socket(struct socket *csocket, enum connection_state state)
#ifdef CONFIG_IPV6 #ifdef CONFIG_IPV6
if (family == AF_INET6) { if (family == AF_INET6) {
pf = PF_INET6;
if (!try_ipv6 || (force_family && force_family != 6)) { if (!try_ipv6 || (force_family && force_family != 6)) {
silent_fail = 1; silent_fail = 1;
continue; continue;
@ -548,11 +547,11 @@ connect_socket(struct socket *csocket, enum connection_state state)
} else } else
#endif #endif
if (family == AF_INET) { if (family == AF_INET) {
pf = PF_INET;
if (!try_ipv4 || (force_family && force_family != 4)) { if (!try_ipv4 || (force_family && force_family != 4)) {
silent_fail = 1; silent_fail = 1;
continue; continue;
} }
pf = PF_INET;
} else { } else {
continue; continue;