diff options
author | kris <kris@FreeBSD.org> | 2000-09-03 07:58:35 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-09-03 07:58:35 +0000 |
commit | 175e5fe4dd448cce6e48db6f1b026da149b5d9ff (patch) | |
tree | 0cff2256e60cb42c975f571b8c82d84dcec1c4e7 /crypto/openssh/auth-skey.c | |
parent | ade89a02336c24db67d83b9e40a79d9e03f69a15 (diff) | |
download | FreeBSD-src-175e5fe4dd448cce6e48db6f1b026da149b5d9ff.zip FreeBSD-src-175e5fe4dd448cce6e48db6f1b026da149b5d9ff.tar.gz |
bzero() the struct timeval for paranoia
Submitted by: gshapiro
Diffstat (limited to 'crypto/openssh/auth-skey.c')
-rw-r--r-- | crypto/openssh/auth-skey.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssh/auth-skey.c b/crypto/openssh/auth-skey.c index 0fc05fc..6d88899 100644 --- a/crypto/openssh/auth-skey.c +++ b/crypto/openssh/auth-skey.c @@ -112,6 +112,7 @@ skey_fake_keyinfo(char *username) mib[0] = CTL_KERN; mib[1] = KERN_BOOTTIME; size = sizeof(boottime); + bzero(&boottime, sizeof(boottime)); if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 && boottime.tv_sec != 0) { secret = (char *)&boottime; |