Use closesocket in server.c for win32

Resolves #56
This commit is contained in:
Aris Adamantiadis
2010-02-11 19:54:57 +01:00
parent 17ca9d9da7
commit 9bec3ee48e

View File

@@ -278,7 +278,11 @@ void ssh_bind_free(ssh_bind sshbind){
}
if (sshbind->bindfd >= 0) {
#ifdef _WIN32
closesocket(sshbind->bindfd);
#else
close(sshbind->bindfd);
#endif
}
sshbind->bindfd = -1;