From 38b8bf02b69f3841fd496f8d628bf71040c99709 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 1 Aug 2013 18:14:36 +0200 Subject: Improved packet obfuscation reliability - Fixes bugreport:7607 http://hercules.ws/board/tracker/issue-7607-changing-emblem-with-packet-obfuscation-2-unknown-packet/ - Resolved unintended disconnections caused by invalid packets when obfuscation is enabled and a fragmented packet is received. - Improved packet parsing reliability when packet obfuscation is set to optional. Special thanks to serverkid for reporting the issue and Ind for figuring out the cause and suggesting a solution. Signed-off-by: Haru --- src/map/pc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/pc.h') diff --git a/src/map/pc.h b/src/map/pc.h index 42bfb56c1..1f1538e1f 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -502,7 +502,8 @@ struct map_session_data { unsigned int queues_count; /* Made Possible Thanks to Yommy~! */ - unsigned int cryptKey; + unsigned int cryptKey; ///< Packet obfuscation key to be used for the next received packet + unsigned short (*parse_cmd_func)(int fd, struct map_session_data *sd); ///< parse_cmd_func used by this player unsigned char delayed_damage;//ref. counter bugreport:7307 [Ind/Hercules] -- cgit v1.2.3-60-g2f50