Mercurial > dropbear
changeset 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 | 35183e8a7851 |
children | a625f9e135a4 |
files | cli-chansession.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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; }