diff options
author | green <green@FreeBSD.org> | 2001-06-26 15:15:22 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2001-06-26 15:15:22 +0000 |
commit | fe0162ddb333a821c9b9a30185eef37b46a06bc5 (patch) | |
tree | 34d2760741cf3779a3a032747ade39181b1ab0bb /crypto | |
parent | c3258d9fddeaad0e7b0be93639ee22c6b1a82650 (diff) | |
download | FreeBSD-src-fe0162ddb333a821c9b9a30185eef37b46a06bc5.zip FreeBSD-src-fe0162ddb333a821c9b9a30185eef37b46a06bc5.tar.gz |
Back out the last change which is probably actually a red herring. Argh!
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/openssh/channels.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/openssh/channels.c b/crypto/openssh/channels.c index 047cd5a..38bec00 100644 --- a/crypto/openssh/channels.c +++ b/crypto/openssh/channels.c @@ -871,10 +871,8 @@ channel_handle_rfd(Channel *c, fd_set * readset, fd_set * writeset) len = read(c->rfd, buf, sizeof(buf)); if (len < 0 && (errno == EINTR || errno == EAGAIN)) return 1; - if (len == 0) - return 1; - if (len < 0) { - debug("channel %d: read<0 rfd %d len %d", + if (len <= 0) { + debug("channel %d: read<=0 rfd %d len %d", c->self, c->rfd, len); if (c->type != SSH_CHANNEL_OPEN) { debug("channel %d: not open", c->self); |