From 69a165db86bc61c02a6d400ca2de77d6f480f46d Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 21 Sep 2013 00:34:36 +0800 Subject: [PATCH] Only send a failure response to a channel request if wantreply is set. --- cli-chansession.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }