diff --git a/src/connect.c b/src/connect.c index c4ae7b93..f7965cbe 100644 --- a/src/connect.c +++ b/src/connect.c @@ -436,6 +436,7 @@ static int ssh_select_cb (socket_t fd, int revents, void *userdata){ */ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd, fd_set *readfds, struct timeval *timeout) { + socket_t fd; int i,j; int rc; int base_tm, tm; @@ -447,10 +448,11 @@ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd, for (i=0 ; channels[i] != NULL; ++i){ ssh_event_add_session(event, channels[i]->session); } - for (i=0; i