From 558f889aae4621000f49eec4f8b668123d28c9ec Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 17 Jun 2010 13:47:29 +0200 Subject: Fixed more fd checks. --- libssh/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/server.c') 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; -- cgit