diff options
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c index 364a62281..40d22800f 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "includes.h" | 15 | #include "includes.h" |
16 | RCSID("$OpenBSD: sshconnect.c,v 1.146 2003/06/28 16:23:06 deraadt Exp $"); | 16 | RCSID("$OpenBSD: sshconnect.c,v 1.147 2003/06/29 12:44:38 markus Exp $"); |
17 | 17 | ||
18 | #include <openssl/bn.h> | 18 | #include <openssl/bn.h> |
19 | 19 | ||
@@ -246,7 +246,7 @@ timeout_connect(int sockfd, const struct sockaddr *serv_addr, | |||
246 | fdsetsz = howmany(sockfd + 1, NFDBITS) * sizeof(fd_mask); | 246 | fdsetsz = howmany(sockfd + 1, NFDBITS) * sizeof(fd_mask); |
247 | fdset = (fd_set *)xmalloc(fdsetsz); | 247 | fdset = (fd_set *)xmalloc(fdsetsz); |
248 | 248 | ||
249 | memset(fdset, '\0', fdsetsz); | 249 | memset(fdset, 0, fdsetsz); |
250 | FD_SET(sockfd, fdset); | 250 | FD_SET(sockfd, fdset); |
251 | tv.tv_sec = timeout; | 251 | tv.tv_sec = timeout; |
252 | tv.tv_usec = 0; | 252 | tv.tv_usec = 0; |