mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +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);
|
fromlen = (socklen_t)sizeof(fromaddress);
|
||||||
c = recvfrom(mysockets[n], (char *)&doomcom->data, MAXPACKETLENGTH, 0,
|
c = recvfrom(mysockets[n], (char *)&doomcom->data, MAXPACKETLENGTH, 0,
|
||||||
(void *)&fromaddress, &fromlen);
|
(void *)&fromaddress, &fromlen);
|
||||||
if (c != ERRSOCKET)
|
if (c > 0)
|
||||||
{
|
{
|
||||||
#ifdef USE_STUN
|
#ifdef USE_STUN
|
||||||
if (STUN_got_response(doomcom->data, c))
|
if (STUN_got_response(doomcom->data, c))
|
||||||
|
|
Loading…
Reference in a new issue