Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1357:08f4fa4dc6a0 | 1358:6b89eb92f872 |
---|---|
86 /* Clean up channels, freeing allocated memory */ | 86 /* Clean up channels, freeing allocated memory */ |
87 void chancleanup() { | 87 void chancleanup() { |
88 | 88 |
89 unsigned int i; | 89 unsigned int i; |
90 | 90 |
91 if (!ses.channels) { | |
92 return; | |
93 } | |
94 | |
91 TRACE(("enter chancleanup")) | 95 TRACE(("enter chancleanup")) |
92 for (i = 0; i < ses.chansize; i++) { | 96 for (i = 0; i < ses.chansize; i++) { |
93 if (ses.channels[i] != NULL) { | 97 if (ses.channels[i] != NULL) { |
94 TRACE(("channel %d closing", i)) | 98 TRACE(("channel %d closing", i)) |
95 remove_channel(ses.channels[i]); | 99 remove_channel(ses.channels[i]); |