1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Mayaqua/Network: Fix empty packet being treated as error

This commit is contained in:
Yihong Wu 2023-02-19 05:41:55 +00:00
parent d49b9f108b
commit eea1de3d25

View File

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