Only send a failure response to a channel request if wantreply is set.

This commit is contained in:
Matt Johnston 2013-09-21 00:34:36 +08:00
parent dffb33cecf
commit 69a165db86

View File

@ -71,7 +71,9 @@ static void cli_chansessreq(struct Channel *channel) {
TRACE(("got exit-signal, ignoring it"))
} else {
TRACE(("unknown request '%s'", type))
if (wantreply) {
send_msg_channel_failure(channel);
}
goto out;
}