mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ignore zero length packets
This commit is contained in:
parent
c8d4ef64f9
commit
b4e6bc6e67
1 changed files with 1 additions and 1 deletions
|
|
@ -596,7 +596,7 @@ static boolean SOCK_Get(void)
|
|||
fromlen = (socklen_t)sizeof(fromaddress);
|
||||
c = recvfrom(mysockets[n], (char *)&doomcom->data, MAXPACKETLENGTH, 0,
|
||||
(void *)&fromaddress, &fromlen);
|
||||
if (c != ERRSOCKET)
|
||||
if (c > 0)
|
||||
{
|
||||
#ifdef USE_STUN
|
||||
if (STUN_got_response(doomcom->data, c))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue