diff common-channel.c @ 1358:6b89eb92f872 fuzz

glaring wrapfd problems fixed
author Matt Johnston <matt@ucc.asn.au>
date Sat, 20 May 2017 22:47:19 +0800
parents 0b1162fbf1c6
children a91466491d5b
line wrap: on
line diff
--- a/common-channel.c	Sat May 20 13:23:16 2017 +0800
+++ b/common-channel.c	Sat May 20 22:47:19 2017 +0800
@@ -88,6 +88,10 @@
 
 	unsigned int i;
 
+	if (!ses.channels) {
+		return;
+	}
+
 	TRACE(("enter chancleanup"))
 	for (i = 0; i < ses.chansize; i++) {
 		if (ses.channels[i] != NULL) {