Avoid use-after-free when channel inithandler fails. Thanks to Coverity

This commit is contained in:
Matt Johnston 2014-07-26 10:18:55 +08:00
parent 7808eff0a9
commit 5cf83a7212

View File

@ -1089,6 +1089,7 @@ void recv_msg_channel_open_confirmation() {
if (ret > 0) {
remove_channel(channel);
TRACE(("inithandler returned failure %d", ret))
return;
}
}