mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-07 07:12:25 +00:00
fix potential plat creation exploit
This commit is contained in:
parent
a29177de9e
commit
7f4ce3faf5
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; version 2 of the License.
|
the Free Software Foundation; version 2 of the License.f
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY except by those people which sell it, which
|
but WITHOUT ANY WARRANTY except by those people which sell it, which
|
||||||
@ -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