mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 14:56:13 +01:00
Clear pad bytes in the struct exported by kern.ntp_pll.gettime.
Reported by: Thomas Barabosch, Fraunhofer FKIE MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
bd62da641d
commit
c7dc361d6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340699
@ -300,6 +300,8 @@ ntp_sysctl(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
struct ntptimeval ntv; /* temporary structure */
|
||||
|
||||
memset(&ntv, 0, sizeof(ntv));
|
||||
|
||||
NTP_LOCK();
|
||||
ntp_gettime1(&ntv);
|
||||
NTP_UNLOCK();
|
||||
|
Loading…
Reference in New Issue
Block a user