proxy: Use closesocket instead of close
This commit is contained in:
parent
33f76d6012
commit
1ec228a177
@ -58,7 +58,7 @@ static SOCKET capture_plugin_init_socket(const captureConfig* cconfig)
|
||||
status = _connect(sockfd, (const struct sockaddr*)&addr, sizeof(addr));
|
||||
if (status < 0)
|
||||
{
|
||||
close(sockfd);
|
||||
closesocket(sockfd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user