diff options
-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); |