Merge pull request #570 from zerosum0x0/potential_makeplat

fix potential plat creation exploit
This commit is contained in:
Akkadius 2016-11-06 16:10:43 -06:00 committed by GitHub
commit e23fd269d5

View File

@ -1194,6 +1194,12 @@ void Client::OPMoveCoin(const EQApplicationPacket* app)
int32 *from_bucket = 0, *to_bucket = 0;
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
if
(