packages: openssh/openssh-bind.patch (NEW) - rel 7; when ipv6 sockets are a...

arekm arekm at pld-linux.org
Sat Nov 12 11:43:20 CET 2011


Author: arekm                        Date: Sat Nov 12 10:43:19 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 7; when ipv6 sockets are allowed to be created (AF_INET6 is supported) sshd tries to bind to ::1, too which may be unavailable (for example in vserver guests or when net.ipv6.conf.all.disable_ipv6=1) - skip af family then

---- Files affected:
packages/openssh:
   openssh-bind.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/openssh/openssh-bind.patch
diff -u /dev/null packages/openssh/openssh-bind.patch:1.1
--- /dev/null	Sat Nov 12 11:43:20 2011
+++ packages/openssh/openssh-bind.patch	Sat Nov 12 11:43:14 2011
@@ -0,0 +1,11 @@
+--- openssh-5.9p1/channels.c~	2011-06-23 00:31:57.000000000 +0200
++++ openssh-5.9p1/channels.c	2011-11-12 11:37:15.242015675 +0100
+@@ -3301,6 +3301,8 @@
+ 			if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
+ 				debug2("bind port %d: %.100s", port, strerror(errno));
+ 				close(sock);
++				if (errno == EADDRNOTAVAIL)
++					continue;
+ 
+ 				for (n = 0; n < num_socks; n++) {
+ 					close(socks[n]);
================================================================


More information about the pld-cvs-commit mailing list