diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-06-17 13:47:29 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-06-17 13:47:29 +0200 |
commit | 558f889aae4621000f49eec4f8b668123d28c9ec (patch) | |
tree | 78a4b6b738e6d9a62b30ee4892d6a788988975d9 /libssh/server.c | |
parent | 937268eb3e5462ba9ad556dd0d667ae565c7c603 (diff) | |
download | libssh-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.c | 2 |
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; |