summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-24 20:54:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-24 20:54:45 +0300
commitcf9c4ca35fefcf392269179785371b679689364c (patch)
tree1cf7e500c06670af13b5241d5208f311677de78b
parentbb1a3ca33a9e72c6a4cf2c97abf5a721a6ed87a9 (diff)
downloadevol-hercules-cf9c4ca35fefcf392269179785371b679689364c.tar.gz
evol-hercules-cf9c4ca35fefcf392269179785371b679689364c.tar.bz2
evol-hercules-cf9c4ca35fefcf392269179785371b679689364c.tar.xz
evol-hercules-cf9c4ca35fefcf392269179785371b679689364c.zip
map: add missing check on close channel packet.
-rw-r--r--src/map/parse.c3
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