summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-12-08 09:54:40 +1100
committerDamien Miller <djm@mindrot.org>2008-12-08 09:54:40 +1100
commit8533c7801d598fa048a7a0ef33d4404ae5d67b3e (patch)
treee0cacd638e880f1cdc2216b5b443d4f113ea571c /clientloop.c
parent7df2e400745219a87f9a9e445a9b89661d6fec42 (diff)
- markus@cvs.openbsd.org 2008/12/02 19:01:07
[clientloop.c] we have to use the recipient's channel number (RFC 4254) for SSH2_MSG_CHANNEL_SUCCESS/SSH2_MSG_CHANNEL_FAILURE messages, otherwise we trigger 'Non-public channel' error messages on sshd systems with clientkeepalive enabled; noticed by sturm; ok djm;
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientloop.c b/clientloop.c
index 737807496..df4545828 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.204 2008/11/05 03:23:09 stevesk Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.205 2008/12/02 19:01:07 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
@@ -1852,7 +1852,7 @@ client_input_channel_req(int type, u_int32_t seq, void *ctxt)
1852 if (reply) { 1852 if (reply) {
1853 packet_start(success ? 1853 packet_start(success ?
1854 SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE); 1854 SSH2_MSG_CHANNEL_SUCCESS : SSH2_MSG_CHANNEL_FAILURE);
1855 packet_put_int(id); 1855 packet_put_int(c->remote_id);
1856 packet_send(); 1856 packet_send();
1857 } 1857 }
1858 xfree(rtype); 1858 xfree(rtype);