From e2fec6a64a403df523d64540f70c73b99fbf491c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Feb 2015 21:46:27 +0300 Subject: map: add missing checks. --- src/map/parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/parse.c') diff --git a/src/map/parse.c b/src/map/parse.c index b06828c..97aac6f 100644 --- a/src/map/parse.c +++ b/src/map/parse.c @@ -25,6 +25,8 @@ void map_parse_version(int fd) { struct SessionExt *data = session_get(fd); + if (!data) + return; data->clientVersion = RFIFOL(fd, 2); } @@ -134,6 +136,8 @@ void map_parse_pet_emote(int fd) void map_parse_set_status(int fd) { struct SessionExt *data = session_get(fd); + if (!data) + return; data->state = RFIFOB(fd, 2); } -- cgit v1.2.3-70-g09d2