mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
bzero() the struct timeval for paranoia
Submitted by: gshapiro
This commit is contained in:
parent
d557549f61
commit
cabf13fcdb
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue