summaryrefslogtreecommitdiffhomepage
path: root/common-channel.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-20 22:47:19 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-20 22:47:19 +0800
commitc1694230516fe1c3d78e4fd23aebd5fbc00ce21c (patch)
tree613a04012ce46ddecb6216301c7cca710cf17aac /common-channel.c
parentfdc6f323923b36add7ab7112b1b4d05368bd5902 (diff)
glaring wrapfd problems fixed
--HG-- branch : fuzz
Diffstat (limited to 'common-channel.c')
-rw-r--r--common-channel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common-channel.c b/common-channel.c
index 7383f47..14985a9 100644
--- a/common-channel.c
+++ b/common-channel.c
@@ -88,6 +88,10 @@ void chancleanup() {
unsigned int i;
+ if (!ses.channels) {
+ return;
+ }
+
TRACE(("enter chancleanup"))
for (i = 0; i < ses.chansize; i++) {
if (ses.channels[i] != NULL) {