mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 01:27:00 +00:00
sys_net: fix sys_net_bnet_select arg check (nfds)
This commit is contained in:
parent
71df5044fc
commit
a8e1afa0af
@ -1786,7 +1786,7 @@ error_code sys_net_bnet_select(ppu_thread& ppu, s32 nfds, vm::ptr<sys_net_fd_set
|
||||
sys_net_fd_set rexcept{};
|
||||
u64 timeout = !_timeout ? 0 : _timeout->tv_sec * 1000000ull + _timeout->tv_usec;
|
||||
|
||||
if (nfds >= 0)
|
||||
if (nfds > 0 && nfds <= 1024)
|
||||
{
|
||||
std::lock_guard nw_lock(g_fxo->get<network_context>()->s_nw_mutex);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user