1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -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
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;