IOS/SO: Handle invalid GetInterfaceOpt requests
This commit is contained in:
parent
2b9df8eedd
commit
e4276f2983
|
@ -719,6 +719,12 @@ IPCCommandResult NetIPTop::HandleGetInterfaceOptRequest(const IOCtlVRequest& req
|
||||||
const u32 param4 = Memory::Read_U32(request.io_vectors[1].address);
|
const u32 param4 = Memory::Read_U32(request.io_vectors[1].address);
|
||||||
u32 param5 = 0;
|
u32 param5 = 0;
|
||||||
|
|
||||||
|
if (param != 0xfffe)
|
||||||
|
{
|
||||||
|
WARN_LOG(IOS_NET, "GetInterfaceOpt: received invalid request with param0=%08x", param);
|
||||||
|
return GetDefaultReply(-51);
|
||||||
|
}
|
||||||
|
|
||||||
if (request.io_vectors[0].size >= 8)
|
if (request.io_vectors[0].size >= 8)
|
||||||
{
|
{
|
||||||
param5 = Memory::Read_U32(request.io_vectors[0].address + 4);
|
param5 = Memory::Read_U32(request.io_vectors[0].address + 4);
|
||||||
|
|
Loading…
Reference in New Issue