ws2_32: Sending 0 bytes shouldn't cause an infinite loop.
This commit is contained in:
parent
f4147ca004
commit
827644ad71
@ -2714,7 +2714,7 @@ INT WINAPI WSASendTo( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
|
||||
struct pollfd pfd;
|
||||
int timeout = GET_SNDTIMEO(fd);
|
||||
|
||||
if (n > 0)
|
||||
if (n >= 0)
|
||||
{
|
||||
*lpNumberOfBytesSent += n;
|
||||
while (first_buff < dwBufferCount && iovec[first_buff].iov_len <= n)
|
||||
|
Loading…
x
Reference in New Issue
Block a user