From 5cf83a7212c0f353e7367766cc4bbf349e83ff0b Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 26 Jul 2014 10:18:55 +0800 Subject: [PATCH] Avoid use-after-free when channel inithandler fails. Thanks to Coverity --- common-channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common-channel.c b/common-channel.c index 1003896..967c937 100644 --- a/common-channel.c +++ b/common-channel.c @@ -1089,6 +1089,7 @@ void recv_msg_channel_open_confirmation() { if (ret > 0) { remove_channel(channel); TRACE(("inithandler returned failure %d", ret)) + return; } }