diff options
author | sumikawa <sumikawa@FreeBSD.org> | 2000-02-15 13:09:45 +0000 |
---|---|---|
committer | sumikawa <sumikawa@FreeBSD.org> | 2000-02-15 13:09:45 +0000 |
commit | 698152ddae066c8f16746d2a603a73614f1bfcb1 (patch) | |
tree | 88b5deaff1307046bfb475a3317eac6be9d7664b /security | |
parent | 673c576e42933ad4cad8d62d24179d7436ce7075 (diff) | |
download | FreeBSD-ports-698152ddae066c8f16746d2a603a73614f1bfcb1.zip FreeBSD-ports-698152ddae066c8f16746d2a603a73614f1bfcb1.tar.gz |
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().
Diffstat (limited to 'security')
-rw-r--r-- | security/openssh/files/patch-at | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/security/openssh/files/patch-at b/security/openssh/files/patch-at index fbb18bc..64a3b5c 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; |