summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-17 14:48:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-17 14:48:50 +0000
commita9aaf01f53a4551abb18d23931ac76aeddda1841 (patch)
tree82b08acdfd1ef429bd534725fdec67a8fc31d41f /src
parentba4e9108cf26c7ceb107808ab1441ba93b29ed1e (diff)
downloadhercules-a9aaf01f53a4551abb18d23931ac76aeddda1841.tar.gz
hercules-a9aaf01f53a4551abb18d23931ac76aeddda1841.tar.bz2
hercules-a9aaf01f53a4551abb18d23931ac76aeddda1841.tar.xz
hercules-a9aaf01f53a4551abb18d23931ac76aeddda1841.zip
- Fixed client not validating the chat-kick-request packet, which can cause crashes.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9243 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/chat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/chat.c b/src/map/chat.c
index 40050073d..9cc06a4ec 100644
--- a/src/map/chat.c
+++ b/src/map/chat.c
@@ -257,6 +257,8 @@ int chat_kickchat(struct map_session_data *sd,char *kickusername)
cd = (struct chat_data *)map_id2bl(sd->chatID);
+ if (!cd) return -1;
+
for(i = 0; i < cd->users; i++) {
if (strcmp(cd->usersd[i]->status.name, kickusername) == 0) {
if (battle_config.gm_kick_chat && pc_isGM(cd->usersd[i]) >= battle_config.gm_kick_chat)