summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-23 15:13:31 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-23 15:13:31 -0600
commitb4882906ab7cd020a615829384b36b35e93e5b46 (patch)
tree7b20027a20f5a8d6915eb273f6d120ac4f4664cb /src/map/clif.c
parent68c3337b48956e286ce8539e164c46eb91e96687 (diff)
downloadtmwa-b4882906ab7cd020a615829384b36b35e93e5b46.tar.gz
tmwa-b4882906ab7cd020a615829384b36b35e93e5b46.tar.bz2
tmwa-b4882906ab7cd020a615829384b36b35e93e5b46.tar.xz
tmwa-b4882906ab7cd020a615829384b36b35e93e5b46.zip
DOn't parse packets out of range
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a309111..eec126e 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8454,7 +8454,7 @@ static int clif_parse(int fd) {
break;
}
return 0;
- }
+ } else if (cmd >= 0x200) return 0;
// パケット長を計算
packet_len = packet_len_table[cmd];