mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
Merge pull request #1772 from domosekai/udp
Mayaqua/Network: Fix empty packet being treated as error
This commit is contained in:
commit
cc61b5b3c3
@ -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