diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2008-06-30 12:15:40 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2008-06-30 12:15:40 +0000 |
commit | 0be49183e197b7d2ae5e6dce449b69c35e7957f7 (patch) | |
tree | 4c85d85141a758a43883c3a36c535956aa110fa2 /usr.bin/ssh | |
parent | 0c10c45f0919900cd122a82c82c4350c794cae9d (diff) |
only pass channel requests on session channels through to the session
channel handler, avoiding spurious log messages; ok! markus@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/serverloop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c index 556e1367038..4b3a29e6531 100644 --- a/usr.bin/ssh/serverloop.c +++ b/usr.bin/ssh/serverloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: serverloop.c,v 1.152 2008/06/10 22:15:23 djm Exp $ */ +/* $OpenBSD: serverloop.c,v 1.153 2008/06/30 12:15:39 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1135,7 +1135,8 @@ server_input_channel_req(int type, u_int32_t seq, void *ctxt) if (!strcmp(rtype, "eow@openssh.com")) { packet_check_eom(); chan_rcvd_eow(c); - } else if (c->type == SSH_CHANNEL_LARVAL || c->type == SSH_CHANNEL_OPEN) + } else if ((c->type == SSH_CHANNEL_LARVAL || + c->type == SSH_CHANNEL_OPEN) && strcmp(c->ctype, "session") == 0) success = session_input_channel_req(c, rtype); if (reply) { packet_start(success ? |