diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 05:48:04 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 05:48:04 +0200 |
commit | edeb1f74498db67636f231e8313cc56d4ff112ec (patch) | |
tree | 329b42a22dd1a407a2e18babcd78b8eaffe58c05 /sshconnect.c | |
parent | - deraadt@cvs.openbsd.org 2003/06/28 16:23:06 (diff) | |
download | openssh-edeb1f74498db67636f231e8313cc56d4ff112ec.tar.xz openssh-edeb1f74498db67636f231e8313cc56d4ff112ec.zip |
- markus@cvs.openbsd.org 2003/06/29 12:44:38
[sshconnect.c]
memset 0, not \0; andrushock@korovino.net
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 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect.c,v 1.146 2003/06/28 16:23:06 deraadt Exp $"); +RCSID("$OpenBSD: sshconnect.c,v 1.147 2003/06/29 12:44:38 markus Exp $"); #include <openssl/bn.h> @@ -246,7 +246,7 @@ timeout_connect(int sockfd, const struct sockaddr *serv_addr, fdsetsz = howmany(sockfd + 1, NFDBITS) * sizeof(fd_mask); fdset = (fd_set *)xmalloc(fdsetsz); - memset(fdset, '\0', fdsetsz); + memset(fdset, 0, fdsetsz); FD_SET(sockfd, fdset); tv.tv_sec = timeout; tv.tv_usec = 0; |