summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMunechika SUMIKAWA <sumikawa@FreeBSD.org>2000-02-15 13:09:45 +0000
committerMunechika SUMIKAWA <sumikawa@FreeBSD.org>2000-02-15 13:09:45 +0000
commitabcd350dae36ec6489fde6df76612953fd3c7adf (patch)
treeb23f1d6f0a294d9a96259fe7a88527dfa4a47d89 /security
parentUpgrade to 3.40. (diff)
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().
Notes
Notes: svn path=/head/; revision=25852
Diffstat (limited to 'security')
-rw-r--r--security/openssh/files/patch-at15
1 files changed, 12 insertions, 3 deletions
diff --git a/security/openssh/files/patch-at b/security/openssh/files/patch-at
index fbb18bc12079..64a3b5cd80ed 100644
--- a/security/openssh/files/patch-at
+++ b/security/openssh/files/patch-at
@@ -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;