proxy: Use closesocket instead of close

This commit is contained in:
Martin Fleisz 2022-07-14 09:28:01 +02:00 committed by David Fort
parent 33f76d6012
commit 1ec228a177

View File

@ -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;
}