diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-30 22:13:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-30 22:13:32 +0300 |
commit | 373c174b60944567677a9df8d16d845ea0c5ec10 (patch) | |
tree | 8f0a7c566b5a7ecbdaecaa87b956e09bdad2e602 /src/map/parse.c | |
parent | 5d279bc95153b0785c844f88f02ef5239e9d9753 (diff) | |
download | plugin-373c174b60944567677a9df8d16d845ea0c5ec10.tar.gz plugin-373c174b60944567677a9df8d16d845ea0c5ec10.tar.bz2 plugin-373c174b60944567677a9df8d16d845ea0c5ec10.tar.xz plugin-373c174b60944567677a9df8d16d845ea0c5ec10.zip |
map: add missing checks.
Diffstat (limited to 'src/map/parse.c')
-rw-r--r-- | src/map/parse.c | 2 |
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; |