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:
parent
9e55cb0d2a
commit
c6dfce8ad8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user