summaryrefslogtreecommitdiffstats
path: root/libssh/server.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-17 13:47:29 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-17 13:47:29 +0200
commit558f889aae4621000f49eec4f8b668123d28c9ec (patch)
tree78a4b6b738e6d9a62b30ee4892d6a788988975d9 /libssh/server.c
parent937268eb3e5462ba9ad556dd0d667ae565c7c603 (diff)
downloadlibssh-558f889aae4621000f49eec4f8b668123d28c9ec.tar.gz
libssh-558f889aae4621000f49eec4f8b668123d28c9ec.tar.xz
libssh-558f889aae4621000f49eec4f8b668123d28c9ec.zip
Fixed more fd checks.
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 ea5a670..bfac7da 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;