diff options
| author | Brian Feldman <green@FreeBSD.org> | 2001-06-26 15:15:22 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2001-06-26 15:15:22 +0000 |
| commit | 0c82706bc007b30206a3e7c24b05a19a8896fd73 (patch) | |
| tree | 34d2760741cf3779a3a032747ade39181b1ab0bb /crypto | |
| parent | c3e2f3baec07f8758b297a659c009c93dca23e4c (diff) | |
Notes
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 047cd5a7a765..38bec00e5c0e 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); |
