aboutsummaryrefslogtreecommitdiff
path: root/security/openssh-portable/files/patch-sshconnect.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2001-06-01 14:49:36 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2001-06-01 14:49:36 +0000
commit5cbc48b2d7fe78d13208d12ed5498d5c7f337ed1 (patch)
treea1039bddf485c683ef0b392748d4211e50076186 /security/openssh-portable/files/patch-sshconnect.c
parent0b3c4191d13cc8e9cc14ac805a559a18b1aab3c3 (diff)
downloadports-5cbc48b2d7fe78d13208d12ed5498d5c7f337ed1.tar.gz
ports-5cbc48b2d7fe78d13208d12ed5498d5c7f337ed1.zip
Notes
Diffstat (limited to 'security/openssh-portable/files/patch-sshconnect.c')
-rw-r--r--security/openssh-portable/files/patch-sshconnect.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/security/openssh-portable/files/patch-sshconnect.c b/security/openssh-portable/files/patch-sshconnect.c
new file mode 100644
index 000000000000..0d2e317b7147
--- /dev/null
+++ b/security/openssh-portable/files/patch-sshconnect.c
@@ -0,0 +1,15 @@
+--- sshconnect.c.orig Fri Apr 13 01:34:36 2001
++++ sshconnect.c Fri Jun 1 08:01:05 2001
+@@ -504,10 +504,12 @@
+ local = (ntohl(((struct sockaddr_in *)hostaddr)->sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;
+ salen = sizeof(struct sockaddr_in);
+ break;
++#ifdef INET6
+ case AF_INET6:
+ local = IN6_IS_ADDR_LOOPBACK(&(((struct sockaddr_in6 *)hostaddr)->sin6_addr));
+ salen = sizeof(struct sockaddr_in6);
+ break;
++#endif
+ default:
+ local = 0;
+ salen = sizeof(struct sockaddr_storage);