diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-11 19:54:57 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-11 19:54:57 +0100 |
commit | d725b3175237f5b50f922d787cc43e32b9249055 (patch) | |
tree | 496bd8ba632d82fa59c03aa6033bb5121fd684a6 | |
parent | c2e86c876cf1e29c9991d0456ed535336ad4cb0c (diff) | |
download | libssh-d725b3175237f5b50f922d787cc43e32b9249055.tar.gz libssh-d725b3175237f5b50f922d787cc43e32b9249055.tar.xz libssh-d725b3175237f5b50f922d787cc43e32b9249055.zip |
Use closesocket in server.c for win32
Resolves #56
-rw-r--r-- | libssh/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c index 9de032f2..79244edb 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -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; |