summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/nchan.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>1999-11-24 20:21:48 +0000
committermarkus <markus@openbsd.org>1999-11-24 20:21:48 +0000
commitf77edd1837b3bdae308b536b2ad4ff98d36adc0b (patch)
tree7a2d9f1edfd395419954a951addfd5fab1d811ee /usr.bin/ssh/nchan.c
parentstrcasecmp instead of tolower (diff)
downloadwireguard-openbsd-f77edd1837b3bdae308b536b2ad4ff98d36adc0b.tar.xz
wireguard-openbsd-f77edd1837b3bdae308b536b2ad4ff98d36adc0b.zip
it's not an error() if shutdown_write failes in nchan.
Diffstat (limited to 'usr.bin/ssh/nchan.c')
-rw-r--r--usr.bin/ssh/nchan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/nchan.c b/usr.bin/ssh/nchan.c
index c7cf51e2c08..68c571939cd 100644
--- a/usr.bin/ssh/nchan.c
+++ b/usr.bin/ssh/nchan.c
@@ -28,7 +28,7 @@
*/
#include "includes.h"
-RCSID("$Id: nchan.c,v 1.7 1999/11/24 16:15:25 markus Exp $");
+RCSID("$Id: nchan.c,v 1.8 1999/11/24 20:21:48 markus Exp $");
#include "ssh.h"
@@ -202,9 +202,10 @@ chan_send_oclose(Channel *c)
static void
chan_shutdown_write(Channel *c)
{
+ /* shutdown failure is allowed if write failed already */
debug("channel %d: shutdown_write", c->self);
if (shutdown(c->sock, SHUT_WR) < 0)
- error("chan_shutdown_write failed for #%d/fd%d: %.100s",
+ debug("chan_shutdown_write failed for #%d/fd%d: %.100s",
c->self, c->sock, strerror(errno));
}
static void