diff options
author | Colin Watson <cjwatson@debian.org> | 2008-11-23 13:19:32 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2008-11-23 13:19:32 +0000 |
commit | f063add71b66011cca8c313fe0c681b0f0e1b97f (patch) | |
tree | f1d2d4b4bd694e682a313163fd1374a24e1fedea /nchan.c | |
parent | e7e618e9f81c5b722a34996fdf7ec372ec093d85 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |