1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

When IPv4-only client connected to a server which have IPv4 and IPv6

addresses, the client couldn't connect to the server via IPv4 because
the client gave up on first rresevport_af().
This commit is contained in:
Munechika SUMIKAWA 2000-02-15 13:09:45 +00:00
parent e3b5997c54
commit abcd350dae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25852

View File

@ -1,6 +1,15 @@
--- sshconnect.c- Fri Jan 14 08:44:43 2000
+++ sshconnect.c Fri Jan 14 08:44:56 2000
@@ -1078,9 +1078,11 @@
--- sshconnect.c- Tue Feb 15 22:00:22 2000
+++ sshconnect.c Tue Feb 15 22:00:27 2000
@@ -150,7 +150,7 @@
int p = IPPORT_RESERVED - 1;
sock = rresvport_af(&p, family);
if (sock < 0)
- fatal("rresvport: af=%d %.100s", family, strerror(errno));
+ error("rresvport: af=%d %.100s", family, strerror(errno));
debug("Allocated local port %d.", p);
} else {
/*
@@ -1080,9 +1080,11 @@
case AF_INET:
local = (ntohl(((struct sockaddr_in *)hostaddr)->sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;
break;