Update socketio.c (#252)

Merged fix from https://github.com/PowerShell/openssh-portable/pull/252
This commit is contained in:
Karl Itnic 2018-01-17 05:37:21 +00:00 committed by Manoj Ampalam
parent 5e0833f69d
commit 97b74e8a10
1 changed files with 1 additions and 0 deletions

View File

@ -704,6 +704,7 @@ socketio_accept(struct w32_io* pio, struct sockaddr* addr, int* addrlen)
if (pio->read_details.error) {
errno = errno_from_WSAError(pio->read_details.error);
debug3("accept - ERROR: async io completed with error: %d, io:%p", pio->read_details.error, pio);
pio->read_details.error = 0;
goto on_error;
}