freebsd-ports/security/hpn-ssh/files/patch-sshconnect.c
Dirk Meyer 5cbc48b2d7 New port:
OpenSSH portable, which has GNU-configure and more.
Diffs to OpenSSH-OPenBSD are huge.
So this is here a complete diffrent branch, no repro-copy
- Did a bit cleanup in the Makefile

Submitted by:	dwcjr@inethouston.net
2001-06-01 14:49:36 +00:00

15 lines
495 B
C

--- 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);