diff options
Diffstat (limited to 'crypto/openssh/channels.c')
-rw-r--r-- | crypto/openssh/channels.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/openssh/channels.c b/crypto/openssh/channels.c index 38bec00..047cd5a 100644 --- a/crypto/openssh/channels.c +++ b/crypto/openssh/channels.c @@ -871,8 +871,10 @@ 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) { - debug("channel %d: read<=0 rfd %d len %d", + if (len == 0) + return 1; + 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); |