summaryrefslogtreecommitdiff
path: root/nchan.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-05-17 03:21:27 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-05-17 03:21:27 +0000
commitb6147ab9e986c698f2a9a5e099a7ed199333cb94 (patch)
treee4662bf82eb137c92a6a0024b281e472047430fd /nchan.c
parentc8b3f476765c2f24cb50462e397262028fc28a2e (diff)
- markus@cvs.openbsd.org 2001/05/16 22:09:21
[channels.c nchan.c] more select() error fixes (don't set rfd/wfd to -1).
Diffstat (limited to 'nchan.c')
-rw-r--r--nchan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nchan.c b/nchan.c
index f4606e07..38d860ba 100644
--- a/nchan.c
+++ b/nchan.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: nchan.c,v 1.24 2001/05/04 23:47:34 markus Exp $");
+RCSID("$OpenBSD: nchan.c,v 1.25 2001/05/16 22:09:21 markus Exp $");
#include "ssh1.h"
#include "ssh2.h"
@@ -484,7 +484,6 @@ chan_shutdown_write(Channel *c)
if (close(c->wfd) < 0)
log("channel %d: chan_shutdown_write: close() failed for fd%d: %.100s",
c->self, c->wfd, strerror(errno));
- c->wfd = -1;
}
}
static void
@@ -507,6 +506,5 @@ chan_shutdown_read(Channel *c)
if (close(c->rfd) < 0)
log("channel %d: chan_shutdown_read: close() failed for fd%d: %.100s",
c->self, c->rfd, strerror(errno));
- c->rfd = -1;
}
}