summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-07-26 10:18:55 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-07-26 10:18:55 +0800
commit5cf83a7212c0f353e7367766cc4bbf349e83ff0b (patch)
tree2652d46358af1101a396e23347dfa058334b7c0c
parent7808eff0a943074ffdc4bec72a7a055863407d54 (diff)
Avoid use-after-free when channel inithandler fails. Thanks to Coverity
-rw-r--r--common-channel.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}