freebsd-ports/security/libssh/files/patch-libssh_socket.c
Alexander Logvinov 515ad9a3e6 - Install a static version of the library [1]
- Fix slow response in Remmina SSH [2]
- Remove MD5 checksum from distinfo

PR:		ports/151653 [1]
Submitted by:	Ronald F.Guilmette <rfg AT tristatelogic.com> [1]
Obtained from:	libssh git [2]
2010-12-05 06:02:49 +00:00

14 lines
383 B
C

--- libssh/socket.c.orig 2010-09-06 03:29:26.000000000 +1000
+++ libssh/socket.c 2010-12-05 14:25:26.000000000 +0900
@@ -265,7 +265,10 @@
if (s->fd == SSH_INVALID_SOCKET)
return;
FD_SET(s->fd,set);
- if (s->fd >= 0 && s->fd != SSH_INVALID_SOCKET) {
+
+ if (s->fd >= 0 &&
+ s->fd >= *max_fd &&
+ s->fd != SSH_INVALID_SOCKET) {
*max_fd = s->fd + 1;
}
}