1
From: Vic Lee <llyzs@163.com>
2
Date: Mon, 20 Sep 2010 16:32:08 +0000
3
Subject: [PATCH] socket.c: Fixed setting max_fd which breaks ssh_select().
5
Signed-off-by: Andreas Schneider <asn@cynapses.org>
7
libssh/socket.c | 5 ++++-
8
1 files changed, 4 insertions(+), 1 deletions(-)
10
diff --git a/libssh/socket.c b/libssh/socket.c
11
index 402a5b7..02db660 100644
14
@@ -257,7 +257,10 @@ void ssh_socket_fd_set(struct socket *s, fd_set *set, socket_t *max_fd) {
15
if (s->fd == SSH_INVALID_SOCKET)
18
- if (s->fd >= 0 && s->fd != SSH_INVALID_SOCKET) {
22
+ s->fd != SSH_INVALID_SOCKET) {