mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Endianness fix for netplay_is_lan_address (#13413)
This commit is contained in:
parent
98bed89d6f
commit
9e208198f2
@ -8662,6 +8662,7 @@ bool netplay_is_lan_address(struct sockaddr_in *addr)
|
||||
uint32_t uaddr;
|
||||
|
||||
memcpy(&uaddr, &addr->sin_addr, sizeof(uaddr));
|
||||
uaddr = ntohl(uaddr);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(subnets); i++)
|
||||
if ((uaddr & masks[i]) == subnets[i])
|
||||
|
Loading…
x
Reference in New Issue
Block a user