Ignore zero length packets

This commit is contained in:
James R 2020-11-12 17:07:34 -08:00
parent ba5b6aa7af
commit b5086b848b
1 changed files with 1 additions and 1 deletions

View File

@ -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))