summaryrefslogtreecommitdiffhomepage
path: root/cli-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-09-21 00:34:36 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-09-21 00:34:36 +0800
commit69a165db86bc61c02a6d400ca2de77d6f480f46d (patch)
tree94e67d47e4d2cab0733c6581e05280c6ac8c90da /cli-chansession.c
parentdffb33cecf3eca78d1a852c0b3d7c137b6775db2 (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.c4
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;
}