diff options
author | Haru <haru@dotalux.com> | 2013-08-01 18:14:36 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-08-01 18:57:31 +0200 |
commit | 38b8bf02b69f3841fd496f8d628bf71040c99709 (patch) | |
tree | 4be62808f7696dbd706688f14be2994da09cdbe6 /src/map/pc.h | |
parent | 94502b74233035b07c8c73a1f991a17b7bf22c55 (diff) | |
download | hercules-38b8bf02b69f3841fd496f8d628bf71040c99709.tar.gz hercules-38b8bf02b69f3841fd496f8d628bf71040c99709.tar.bz2 hercules-38b8bf02b69f3841fd496f8d628bf71040c99709.tar.xz hercules-38b8bf02b69f3841fd496f8d628bf71040c99709.zip |
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 <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.h')
-rw-r--r-- | src/map/pc.h | 3 |
1 files changed, 2 insertions, 1 deletions
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] |