mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-14 02:10:06 +00:00
Fix missing validation in Nanos::nanoEquipHandler()
This commit is contained in:
parent
f376c68115
commit
6412a9a89e
@ -226,6 +226,9 @@ static void nanoEquipHandler(CNSocket* sock, CNPacketData* data) {
|
|||||||
if (nano->iNanoSlotNum > 2 || nano->iNanoSlotNum < 0)
|
if (nano->iNanoSlotNum > 2 || nano->iNanoSlotNum < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (nano->iNanoID < 0 || nano->iNanoID >= NANO_COUNT)
|
||||||
|
return;
|
||||||
|
|
||||||
resp.iNanoID = nano->iNanoID;
|
resp.iNanoID = nano->iNanoID;
|
||||||
resp.iNanoSlotNum = nano->iNanoSlotNum;
|
resp.iNanoSlotNum = nano->iNanoSlotNum;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user