From cf9c4ca35fefcf392269179785371b679689364c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Feb 2015 20:54:45 +0300 Subject: map: add missing check on close channel packet. --- src/map/parse.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-60-g2f50