summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-30 22:13:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-30 22:13:32 +0300
commit373c174b60944567677a9df8d16d845ea0c5ec10 (patch)
tree8f0a7c566b5a7ecbdaecaa87b956e09bdad2e602
parent5d279bc95153b0785c844f88f02ef5239e9d9753 (diff)
downloadevol-hercules-373c174b60944567677a9df8d16d845ea0c5ec10.tar.gz
evol-hercules-373c174b60944567677a9df8d16d845ea0c5ec10.tar.bz2
evol-hercules-373c174b60944567677a9df8d16d845ea0c5ec10.tar.xz
evol-hercules-373c174b60944567677a9df8d16d845ea0c5ec10.zip
map: add missing checks.
-rw-r--r--src/map/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/parse.c b/src/map/parse.c
index 60db879..38e42f3 100644
--- a/src/map/parse.c
+++ b/src/map/parse.c
@@ -177,6 +177,8 @@ void map_parse_homun_say(int fd)
char message[500];
TBL_PC* sd = (TBL_PC*)session[fd]->session_data;
+ if (!sd)
+ return;
const int len = RFIFOW(fd, 2);
if (len > 500 || len < 6)
return;