mirror of
https://github.com/clearml/dropbear
synced 2025-02-02 03:43:53 +00:00
Avoid use-after-free when channel inithandler fails. Thanks to Coverity
This commit is contained in:
parent
7808eff0a9
commit
5cf83a7212
@ -1089,6 +1089,7 @@ void recv_msg_channel_open_confirmation() {
|
|||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
remove_channel(channel);
|
remove_channel(channel);
|
||||||
TRACE(("inithandler returned failure %d", ret))
|
TRACE(("inithandler returned failure %d", ret))
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user