|
Lines 626-631
Link Here
|
| 626 |
if (currentData + sizeof (ENetProtocolCommandHeader) > & host -> receivedData [host -> receivedDataLength]) |
626 |
if (currentData + sizeof (ENetProtocolCommandHeader) > & host -> receivedData [host -> receivedDataLength]) |
| 627 |
return 0; |
627 |
return 0; |
| 628 |
|
628 |
|
|
|
629 |
if (header.commandLength < 0) |
| 630 |
return 0; |
| 631 |
|
| 629 |
command -> header.commandLength = ENET_NET_TO_HOST_32 (command -> header.commandLength); |
632 |
command -> header.commandLength = ENET_NET_TO_HOST_32 (command -> header.commandLength); |
| 630 |
|
633 |
|
| 631 |
if (currentData + command -> header.commandLength > & host -> receivedData [host -> receivedDataLength]) |
634 |
if (currentData + command -> header.commandLength > & host -> receivedData [host -> receivedDataLength]) |