mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +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;
|
return false;
|
||||||
|
|
||||||
received += actual_sz;
|
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)
|
if (this->ScanDataForStop(dst, received) == true)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user