summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-05-19 16:06:47 +1000
committerDamien Miller <djm@mindrot.org>2008-05-19 16:06:47 +1000
commitbab9bd4c20dac1d513fbf16d1214e0c0f9a1bf3b (patch)
tree536e741d3502911fa7f8a8322f15da634d6648a3 /serverloop.c
parentd654dd27b5774575edd341827c38735ac9222174 (diff)
- markus@cvs.openbsd.org 2008/05/09 16:21:13
[channels.h clientloop.c nchan.c serverloop.c] unbreak ssh -2 localhost od /bin/ls | true ignoring SIGPIPE by adding a new channel message (EOW) that signals the peer that we're not interested in any data it might send. fixes bz #85; discussion, debugging and ok djm@
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c
index 2142f3809..6bc140f8b 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: serverloop.c,v 1.150 2008/05/09 04:55:56 djm Exp $ */ 1/* $OpenBSD: serverloop.c,v 1.151 2008/05/09 16:21:13 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1160,7 +1160,10 @@ server_input_channel_req(int type, u_int32_t seq, void *ctxt)
1160 if ((c = channel_lookup(id)) == NULL) 1160 if ((c = channel_lookup(id)) == NULL)
1161 packet_disconnect("server_input_channel_req: " 1161 packet_disconnect("server_input_channel_req: "
1162 "unknown channel %d", id); 1162 "unknown channel %d", id);
1163 if (c->type == SSH_CHANNEL_LARVAL || c->type == SSH_CHANNEL_OPEN) 1163 if (!strcmp(rtype, "eow@openssh.com")) {
1164 packet_check_eom();
1165 chan_rcvd_eow(c);
1166 } else if (c->type == SSH_CHANNEL_LARVAL || c->type == SSH_CHANNEL_OPEN)
1164 success = session_input_channel_req(c, rtype); 1167 success = session_input_channel_req(c, rtype);
1165 if (reply) { 1168 if (reply) {
1166 packet_start(success ? 1169 packet_start(success ?