summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;
}