summaryrefslogtreecommitdiff
path: root/nchan.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-11-03 19:20:10 +1100
committerDamien Miller <djm@mindrot.org>2008-11-03 19:20:10 +1100
commit456e6f0ebb27b4851363422aa9974b0848d4b168 (patch)
tree783ef64c728b6b318687d7efbc8b0ce2c469dbc7 /nchan.c
parent15bce6b8f0e7280aaf26b97a316a991990fc0ca0 (diff)
downloadopenssh-git-456e6f0ebb27b4851363422aa9974b0848d4b168.tar.gz
- 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nchan.c b/nchan.c
index e0ebf43f..b78d6a76 100644
--- a/nchan.c
+++ b/nchan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nchan.c,v 1.60 2008/06/30 12:16:02 djm Exp $ */
+/* $OpenBSD: nchan.c,v 1.61 2008/09/11 14:22:37 markus Exp $ */
/*
* Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved.
*
@@ -387,6 +387,8 @@ chan_send_eow2(Channel *c)
c->self);
return;
}
+ if (!(datafellows & SSH_NEW_OPENSSH))
+ return;
packet_start(SSH2_MSG_CHANNEL_REQUEST);
packet_put_int(c->remote_id);
packet_put_cstring("eow@openssh.com");