mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
Merge pull request #570 from zerosum0x0/potential_makeplat
fix potential plat creation exploit
This commit is contained in:
commit
e23fd269d5
@ -1194,6 +1194,12 @@ void Client::OPMoveCoin(const EQApplicationPacket* app)
|
|||||||
int32 *from_bucket = 0, *to_bucket = 0;
|
int32 *from_bucket = 0, *to_bucket = 0;
|
||||||
Mob* trader = trade->With();
|
Mob* trader = trade->With();
|
||||||
|
|
||||||
|
// if amount < 0, client is sending a malicious packet
|
||||||
|
if (mc->amount < 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// could just do a range, but this is clearer and explicit
|
// could just do a range, but this is clearer and explicit
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user