mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-25 17:49:52 +03:00
Mayaqua/Network: Fix empty packet being treated as error
This commit is contained in:
parent
d49b9f108b
commit
eea1de3d25
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user