summaryrefslogtreecommitdiff
path: root/nchan.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-11-23 13:19:32 +0000
committerColin Watson <cjwatson@debian.org>2008-11-23 13:19:32 +0000
commitf063add71b66011cca8c313fe0c681b0f0e1b97f (patch)
treef1d2d4b4bd694e682a313163fd1374a24e1fedea /nchan.c
parente7e618e9f81c5b722a34996fdf7ec372ec093d85 (diff)
* Backport from upstream CVS (Markus Friedl):
- Only send eow and no-more-sessions requests to openssh 5 and newer; fixes interop problems with broken ssh v2 implementations (closes: #495917).
Diffstat (limited to 'nchan.c')
-rw-r--r--nchan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nchan.c b/nchan.c
index e0ebf43f1..d31c69b2f 100644
--- a/nchan.c
+++ b/nchan.c
@@ -387,6 +387,8 @@ chan_send_eow2(Channel *c)
387 c->self); 387 c->self);
388 return; 388 return;
389 } 389 }
390 if (!(datafellows & SSH_NEW_OPENSSH))
391 return;
390 packet_start(SSH2_MSG_CHANNEL_REQUEST); 392 packet_start(SSH2_MSG_CHANNEL_REQUEST);
391 packet_put_int(c->remote_id); 393 packet_put_int(c->remote_id);
392 packet_put_cstring("eow@openssh.com"); 394 packet_put_cstring("eow@openssh.com");