From abcd350dae36ec6489fde6df76612953fd3c7adf Mon Sep 17 00:00:00 2001 From: Munechika SUMIKAWA Date: Tue, 15 Feb 2000 13:09:45 +0000 Subject: 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(). --- security/openssh/files/patch-at | 15 ++++++++++++--- 1 file 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; -- cgit v1.2.3