diff options
author | stevesk <stevesk> | 2001-09-18 16:08:24 +0000 |
---|---|---|
committer | stevesk <stevesk> | 2001-09-18 16:08:24 +0000 |
commit | f328b77b351d7b3b1fe87724b4081e9a3b4dbf3a (patch) | |
tree | 2027bb3459a5c7883174f3c614915972ed5db085 /nchan.c | |
parent | 17b5f874ffa4befc137da948b2605b9ec39f0006 (diff) | |
download | openssh-f328b77b351d7b3b1fe87724b4081e9a3b4dbf3a.tar.gz |
- (stevesk) nchan.c: we use X/Open Sockets on HP-UX now so shutdown(2)
returns ENOTCONN vs. EINVAL for socket not connected; remove EINVAL
check. ok Lutz Jaenicke
Diffstat (limited to 'nchan.c')
-rw-r--r-- | nchan.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -534,10 +534,10 @@ chan_shutdown_read(Channel *c) /* * shutdown(sock, SHUT_READ) may return ENOTCONN if the * write side has been closed already. (bug on Linux) - * HP-UX will return EINVAL. + * HP-UX may return ENOTCONN also. */ if (shutdown(c->sock, SHUT_RD) < 0 - && (errno != ENOTCONN && errno != EINVAL)) + && errno != ENOTCONN) error("channel %d: chan_shutdown_read: " "shutdown() failed for fd%d [i%d o%d]: %.100s", c->self, c->sock, c->istate, c->ostate, |