diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-09-21 00:34:36 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-09-21 00:34:36 +0800 |
commit | 69a165db86bc61c02a6d400ca2de77d6f480f46d (patch) | |
tree | 94e67d47e4d2cab0733c6581e05280c6ac8c90da /cli-chansession.c | |
parent | dffb33cecf3eca78d1a852c0b3d7c137b6775db2 (diff) |
Only send a failure response to a channel request if wantreply is set.
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index 17e0d53..4438776 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -71,7 +71,9 @@ static void cli_chansessreq(struct Channel *channel) { TRACE(("got exit-signal, ignoring it")) } else { TRACE(("unknown request '%s'", type)) - send_msg_channel_failure(channel); + if (wantreply) { + send_msg_channel_failure(channel); + } goto out; } |