aboutsummaryrefslogtreecommitdiff
path: root/libssh/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/server.c')
-rw-r--r--libssh/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/server.c b/libssh/server.c
index ea5a670b..bfac7da3 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -150,7 +150,7 @@ int ssh_bind_listen(ssh_bind sshbind) {
}
fd = bind_socket(sshbind, host, sshbind->bindport);
- if (fd < 0) {
+ if (fd == SSH_INVALID_SOCKET) {
return -1;
}
sshbind->bindfd = fd;