mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
Only send a failure response to a channel request if wantreply is set.
This commit is contained in:
parent
dffb33cecf
commit
69a165db86
@ -71,7 +71,9 @@ static void cli_chansessreq(struct Channel *channel) {
|
|||||||
TRACE(("got exit-signal, ignoring it"))
|
TRACE(("got exit-signal, ignoring it"))
|
||||||
} else {
|
} else {
|
||||||
TRACE(("unknown request '%s'", type))
|
TRACE(("unknown request '%s'", type))
|
||||||
send_msg_channel_failure(channel);
|
if (wantreply) {
|
||||||
|
send_msg_channel_failure(channel);
|
||||||
|
}
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user