tests: use closesocket()

Because they are actually sockets...

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230221124802.4103554-3-marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2023-02-21 16:47:47 +04:00
parent 8278e30c45
commit a59100a9b0
1 changed files with 3 additions and 3 deletions

View File

@ -117,13 +117,13 @@ static int socket_can_bind_connect(const char *hostname, int family)
cleanup:
if (afd != -1) {
close(afd);
closesocket(afd);
}
if (cfd != -1) {
close(cfd);
closesocket(cfd);
}
if (lfd != -1) {
close(lfd);
closesocket(lfd);
}
if (res) {
freeaddrinfo(res);