]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- Fixed X11 forwarding bug on Linux. libc advertises AF_INET6 V_1_2_1_PRE27
authorDamien Miller <djm@mindrot.org>
Mon, 17 Jan 2000 02:22:55 +0000 (13:22 +1100)
committerDamien Miller <djm@mindrot.org>
Mon, 17 Jan 2000 02:22:55 +0000 (13:22 +1100)
   INADDR_ANY_INIT addresses via getaddrinfo, but may not be able to
   deliver (no IPv6 kernel kernel support)
 - Released 1.2.1pre27

ChangeLog
channels.c

index 3858b89d73f031f471cd63eb33a2cee94319f229..5cd8348ff2adf244a5774f073a8ba16e932b2bb2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
  - Revert __snprintf -> snprintf aliasing. Apparently Solaris 
    __snprintf isn't. Report from Theo de Raadt <theo@cvs.openbsd.org>
  - Document location of Redhat PAM file in INSTALL.
+ - Fixed X11 forwarding bug on Linux. libc advertises AF_INET6 
+   INADDR_ANY_INIT addresses via getaddrinfo, but may not be able to 
+   deliver (no IPv6 kernel kernel support)
+ - Released 1.2.1pre27
 
 20000116
  - Renamed --with-xauth-path to --with-xauth
index c4f54a88fec8f9c1069b4bc5b28a2b72ac25dab7..ba4c2bef987e2222e3737a265be2cb89f5c264dc 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #include "includes.h"
-RCSID("$Id: channels.c,v 1.15 2000/01/14 04:45:48 damien Exp $");
+RCSID("$Id: channels.c,v 1.16 2000/01/17 02:22:55 damien Exp $");
 
 #include "ssh.h"
 #include "packet.h"
@@ -1187,8 +1187,13 @@ x11_create_display_inet(int screen_number, int x11_display_offset)
                                continue;
                        sock = socket(ai->ai_family, SOCK_STREAM, 0);
                        if (sock < 0) {
-                               error("socket: %.100s", strerror(errno));
-                               return NULL;
+                               if (errno != EINVAL) {
+                                       error("socket: %.100s", strerror(errno));
+                                       return NULL;
+                               } else {
+                                       debug("Socket family %d not supported [X11 disp create]", ai->ai_family);
+                                       continue;
+                               }
                        }
                        if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
                                debug("bind port %d: %.100s", port, strerror(errno));