mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Zero struct efi_tm before setting the needed values. We don't use the dst
or timezone fields so ensure these are set. Reported by: emaste Sponsored by: DARPA, AFRL
This commit is contained in:
parent
1719df1bb4
commit
a72d6c8975
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326121
@ -116,6 +116,7 @@ efirtc_settime(device_t dev, struct timespec *ts)
|
||||
|
||||
clock_ts_to_ct(ts, &ct);
|
||||
|
||||
bzero(&tm, sizeof(tm));
|
||||
tm.tm_sec = ct.sec;
|
||||
tm.tm_min = ct.min;
|
||||
tm.tm_hour = ct.hour;
|
||||
|
Loading…
Reference in New Issue
Block a user