Bug in openssh-6.4p1

Reinig, Peter Peter.Reinig at keymile.com
Tue Nov 19 01:07:52 EST 2013


Hello Guys,

I found the following bug of openssh-6.4p1 using Solaris 10 in channels.c which results in scanning only AF_INET6 addresses for X11 forwarding. If the server has only AF_INET addresses, these are never tested and so X11 forwarding fails.

The following diff shows a possible fix:

user at server [openssh-6.4p1] diff -c channels.c*
*** channels.c  Mo Nov 18 14:36:51 2013
--- channels.c_orig     Mo Nov 18 14:36:24 2013
***************
*** 3470,3476 ****
                                        close(socks[n]);
                                }
                                num_socks = 0;
!                               continue;
                        }
                        socks[num_socks++] = sock;
                        if (num_socks == NUM_SOCKS)
--- 3470,3476 ----
                                        close(socks[n]);
                                }
                                num_socks = 0;
!                               break;
                        }
                        socks[num_socks++] = sock;
                        if (num_socks == NUM_SOCKS)


Regards ,

Peter

Head of R&D Network Management Solutions
KEYMILE Hanover
________________________________________

KEYMILE GmbH
Wohlenbergstraße 3
30179 Hannover

Phone:   +49 511 67 47-697
Fax:       +49 511 67 47-777
E-mail:   Peter.Reinig at keymile.com<mailto:Peter.Reinig at keymile.com>
HTTP:    http://www.keymile.com
<< KEYMILE: A Specialist as a Partner >>

*********************************************************************************************************
Geschäftsführer: Björn Claaßen, Michael Breyer, Axel Föry  -  Rechtsform der Gesellschaft: GmbH, Sitz: Hannover  -  HRB 61069, Amtsgericht Hannover; USt-Id. Nr.: DE 812282795; WEEE-Reg.-Nr.: DE 59336750
Managing Directors: Bjoern Claassen, Michael Breyer, Axel Foery  -  Legal structure: GmbH, Registered office: Hanover, HRB 61069  -  Local court Hanover, VAT-Reg.-No.: DE 812282795,    WEEE-Reg.-No.: DE 59336750



More information about the openssh-unix-dev mailing list