diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-07-26 10:18:55 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-07-26 10:18:55 +0800 |
commit | 5cf83a7212c0f353e7367766cc4bbf349e83ff0b (patch) | |
tree | 2652d46358af1101a396e23347dfa058334b7c0c /common-channel.c | |
parent | 7808eff0a943074ffdc4bec72a7a055863407d54 (diff) |
Avoid use-after-free when channel inithandler fails. Thanks to Coverity
Diffstat (limited to 'common-channel.c')
-rw-r--r-- | common-channel.c | 1 |
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; } } |