aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c
index 81801e92..a1d234f3 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;