Mercurial > dropbear
diff cli-chansession.c @ 816:84e4259dae3e
Only send a failure response to a channel request if wantreply is set.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 21 Sep 2013 00:34:36 +0800 |
parents | b2d4205b0897 |
children | 4095b6d7c9fc |
line wrap: on
line diff
--- a/cli-chansession.c Sat Sep 21 00:17:22 2013 +0800 +++ b/cli-chansession.c Sat Sep 21 00:34:36 2013 +0800 @@ -71,7 +71,9 @@ 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; }