[Bug 1306] Spurious : "chan_read_failed for istate 3" errors from sshd
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Tue Apr 10 13:07:59 EST 2007
http://bugzilla.mindrot.org/show_bug.cgi?id=1306
------- Comment #3 from djm at mindrot.org 2007-04-10 13:07 -------
(From update of attachment 1260)
>Index: nchan.c
>===================================================================
>RCS file: /usr/local/src/security/openssh/cvs/openssh/nchan.c,v
>retrieving revision 1.56
>diff -u -p -r1.56 nchan.c
>--- nchan.c 5 Aug 2006 02:39:40 -0000 1.56
>+++ nchan.c 10 Apr 2007 02:41:02 -0000
>@@ -133,17 +133,19 @@ chan_rcvd_oclose1(Channel *c)
> }
> }
> void
>-chan_read_failed(Channel *c)
>+chan_read_failed(Channel *c, int err_no)
> {
>- debug2("channel %d: read failed", c->self);
>+ debug2("channel %d: read failed%s, istate %d", c->self,
>+ err_no ? "" : " (simulated)", c->istate);
maybe s/simulated/closed/ here
> switch (c->istate) {
> case CHAN_INPUT_OPEN:
> chan_shutdown_read(c);
> chan_set_istate(c, CHAN_INPUT_WAIT_DRAIN);
> break;
> default:
>- error("channel %d: chan_read_failed for istate %d",
>- c->self, c->istate);
>+ if (err_no != 0)
>+ error("channel %d: chan_read_failed for istate %d: %s",
>+ c->self, c->istate, strerror(errno));
s/errno/err_no/ on this line
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list