diff options
-rw-r--r-- | lib/stream-tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stream-tcp.c b/lib/stream-tcp.c index 4cd4e6f18..d62e9c37e 100644 --- a/lib/stream-tcp.c +++ b/lib/stream-tcp.c @@ -58,7 +58,7 @@ new_tcp_stream(const char *name, int fd, int connect_status, int error = sock_errno(); VLOG_ERR("%s: setsockopt(TCP_NODELAY): %s", name, sock_strerror(error)); - close(fd); + closesocket(fd); return error; } |