summaryrefslogtreecommitdiffstats
path: root/security/openssh/files/patch-at
blob: 64a3b5cd80ed8edfd2360987f5642e55cf8371e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 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;
+#ifdef INET6
 	case AF_INET6:
 		local = IN6_IS_ADDR_LOOPBACK(&(((struct sockaddr_in6 *)hostaddr)->sin6_addr));
 		break;
+#endif
 	default:
 		local = 0;
 		break;
OpenPOWER on IntegriCloud