minor bug in channels.c
Lincoln Stein
lstein at presto.cshl.org
Sat Dec 16 14:45:18 EST 2000
On openssh-2.2.0p1, I found that with certain Linux kernel
configurations the check for unsupported address families in
channels.c fails because the errno returned is EAFNOSUPPORT rather
than EINVAL. This causes the sshd server to terminate when trying to
set up X11 forwarding.
A patch is enclosed. Keep up the great work!
Best,
Lincoln
--
========================================================================
Lincoln D. Stein Cold Spring Harbor Laboratory
lstein at cshl.org Cold Spring Harbor, NY
Positions available at my lab: see http://stein.cshl.org/#hire
========================================================================
*** channels.c.orig Tue Aug 22 20:46:24 2000
--- channels.c Fri Dec 15 22:35:48 2000
***************
*** 1740,1746 ****
continue;
sock = socket(ai->ai_family, SOCK_STREAM, 0);
if (sock < 0) {
! if (errno != EINVAL) {
error("socket: %.100s", strerror(errno));
return NULL;
} else {
--- 1740,1746 ----
continue;
sock = socket(ai->ai_family, SOCK_STREAM, 0);
if (sock < 0) {
! if (errno != EINVAL && errno != EAFNOSUPPORT) {
error("socket: %.100s", strerror(errno));
return NULL;
} else {
More information about the openssh-unix-dev
mailing list