diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-24 20:54:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-24 20:54:45 +0300 |
commit | cf9c4ca35fefcf392269179785371b679689364c (patch) | |
tree | 1cf7e500c06670af13b5241d5208f311677de78b /src/map/parse.c | |
parent | bb1a3ca33a9e72c6a4cf2c97abf5a721a6ed87a9 (diff) | |
download | plugin-cf9c4ca35fefcf392269179785371b679689364c.tar.gz plugin-cf9c4ca35fefcf392269179785371b679689364c.tar.bz2 plugin-cf9c4ca35fefcf392269179785371b679689364c.tar.xz plugin-cf9c4ca35fefcf392269179785371b679689364c.zip |
map: add missing check on close channel packet.
Diffstat (limited to 'src/map/parse.c')
-rw-r--r-- | src/map/parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/parse.c b/src/map/parse.c index 1b905ea..b06828c 100644 --- a/src/map/parse.c +++ b/src/map/parse.c @@ -79,6 +79,9 @@ void map_parse_part_channel(int fd) break; } + if (k == sd->channel_count) + return; + if (sd->channels[k]->type == HCS_TYPE_ALLY) { do |