diff options
-rw-r--r-- | src/connect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connect.c b/src/connect.c index 6c09c3f6..040638b1 100644 --- a/src/connect.c +++ b/src/connect.c @@ -488,6 +488,7 @@ int ssh_select(ssh_channel *channels, ssh_channel *outchannels, socket_t maxfd, ssh_event_add_session(event, channels[i]->session); } + ZERO_STRUCT(origfds); FD_ZERO(&origfds); for (fd = 0; fd < maxfd ; fd++) { if (FD_ISSET(fd, readfds)) { |