changeset 944:2e402a09e21e

Avoid use-after-free when channel inithandler fails. Thanks to Coverity
author Matt Johnston <matt@ucc.asn.au>
date Sat, 26 Jul 2014 10:18:55 +0800
parents 8664fea5072f
children 9969cee83d0a 17d874ae93a1
files common-channel.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/common-channel.c	Fri Jul 25 22:22:39 2014 +0800
+++ b/common-channel.c	Sat Jul 26 10:18:55 2014 +0800
@@ -1089,6 +1089,7 @@
 		if (ret > 0) {
 			remove_channel(channel);
 			TRACE(("inithandler returned failure %d", ret))
+			return;
 		}
 	}