aboutsummaryrefslogtreecommitdiff
path: root/src/connect.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-26 08:41:36 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-24 09:48:35 +0200
commit1ec2ca420226c8f8f2fdd1b249944d0be62eeda3 (patch)
tree29920f231831315ec7306995177546193517c9f5 /src/connect.c
parent2fad391456c78079ee7544919dc8b6883db995a7 (diff)
downloadlibssh-1ec2ca420226c8f8f2fdd1b249944d0be62eeda3.tar.gz
libssh-1ec2ca420226c8f8f2fdd1b249944d0be62eeda3.tar.xz
libssh-1ec2ca420226c8f8f2fdd1b249944d0be62eeda3.zip
connect: Zero the origfds struct
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/connect.c')
-rw-r--r--src/connect.c1
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)) {