summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-05 02:39:36 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-05 02:39:36 +0000
commited5080a4e20fe5165fd37455e8b4aa83c093a609 (patch)
treeca1298fcb4751a0b262f47d494d140e4cc910970 /src/map
parent3bc5c6efe9caccfd52be14a397b050a3fb2aa493 (diff)
downloadhercules-ed5080a4e20fe5165fd37455e8b4aa83c093a609.tar.gz
hercules-ed5080a4e20fe5165fd37455e8b4aa83c093a609.tar.bz2
hercules-ed5080a4e20fe5165fd37455e8b4aa83c093a609.tar.xz
hercules-ed5080a4e20fe5165fd37455e8b4aa83c093a609.zip
Disconnect user on forged selectegg packet (may be temporary fix). (bugreport: 1257)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12484 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 0940ea03b..711f0d50b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6708,7 +6708,7 @@ void clif_wedding_effect(struct block_list *bl)
clif_send(buf, packet_len(0x1ea), bl, AREA);
}
/*==========================================
- * ‚ ‚È‚½‚Ɉ§‚¢‚½‚¢Žg—pŽž–¼‘O‹©‚Ñ
+ * ‚ ‚È‚½‚Ɉ§‚¢‚½‚¢Žg—pŽž–¼‘O‹©‚Ñ
*------------------------------------------
void clif_callpartner(struct map_session_data *sd)
@@ -10294,7 +10294,11 @@ void clif_parse_CatchPet(int fd, struct map_session_data *sd)
void clif_parse_SelectEgg(int fd, struct map_session_data *sd)
{
if (sd->menuskill_id != SA_TAMINGMONSTER || sd->menuskill_val != -1)
+ {
+ //Forged packet, disconnect them [Kevin]
+ clif_authfail_fd(fd, 0);
return;
+ }
pet_select_egg(sd,RFIFOW(fd,2)-2);
sd->menuskill_val = sd->menuskill_id = 0;
}