Update tcp_sink.h

This commit is contained in:
Gabi Melman 2020-02-10 23:00:08 +02:00 committed by GitHub
parent e9d0b424d5
commit 574563d711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,9 +106,9 @@ private:
} }
else else
{ {
socket_rv = -1;
last_errno = errno; last_errno = errno;
::close(socket_rv); ::close(socket_rv);
socket_rv = -1;
} }
} }
::freeaddrinfo(addrinfo_result); ::freeaddrinfo(addrinfo_result);