diff options
author | Damien Miller <djm@mindrot.org> | 2008-11-03 19:20:10 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-11-03 19:20:10 +1100 |
commit | 456e6f0ebb27b4851363422aa9974b0848d4b168 (patch) | |
tree | 783ef64c728b6b318687d7efbc8b0ce2c469dbc7 /nchan.c | |
parent | 15bce6b8f0e7280aaf26b97a316a991990fc0ca0 (diff) |
- markus@cvs.openbsd.org 2008/09/11 14:22:37
[compat.c compat.h nchan.c ssh.c]
only send eow and no-more-sessions requests to openssh 5 and newer;
fixes interop problems with broken ssh v2 implementations; ok djm@
Diffstat (limited to 'nchan.c')
-rw-r--r-- | nchan.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: nchan.c,v 1.60 2008/06/30 12:16:02 djm Exp $ */ | 1 | /* $OpenBSD: nchan.c,v 1.61 2008/09/11 14:22:37 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -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"); |