1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 17:49:52 +03:00

Merge pull request #1772 from domosekai/udp

Mayaqua/Network: Fix empty packet being treated as error
This commit is contained in:
Yihong Wu 2023-02-21 10:14:36 +08:00 committed by GitHub
commit cc61b5b3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10627,6 +10627,10 @@ UINT RecvFrom(SOCK *sock, IP *src_addr, UINT *src_port, void *data, UINT size)
return (UINT)ret;
}
else if (ret == 0)
{
return SOCK_LATER;
}
else
{
#ifdef OS_WIN32
@ -10711,6 +10715,10 @@ UINT RecvFrom6(SOCK *sock, IP *src_addr, UINT *src_port, void *data, UINT size)
return (UINT)ret;
}
else if (ret == 0)
{
return SOCK_LATER;
}
else
{
#ifdef OS_WIN32