mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Check that the network magic is correct
This commit is contained in:
parent
4a183a000e
commit
1033f94d24
@ -565,6 +565,10 @@ bool Network::ReceiveUpdate(NetworkUpdate *dst, size_t total_sz,
|
||||
return false;
|
||||
|
||||
received += actual_sz;
|
||||
if (ntohs(dst->magic) != FRODO_NETWORK_MAGIC) {
|
||||
printf("Packet with wrong magic received\n");
|
||||
return false;
|
||||
}
|
||||
if (this->ScanDataForStop(dst, received) == true)
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user