mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Ignore zero length packets
This commit is contained in:
parent
ba5b6aa7af
commit
b5086b848b
1 changed files with 1 additions and 1 deletions
|
@ -633,7 +633,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…
Reference in a new issue