mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
INSIST() on sane time from the kernel.
This commit is contained in:
parent
e596c6fe81
commit
ce1b0e505e
@ -35,5 +35,7 @@ isc_stdtime_get(isc_stdtime_t *t) {
|
||||
|
||||
RUNTIME_CHECK(gettimeofday(&tv, NULL) != -1);
|
||||
|
||||
INSIST(tv.tv_usec >= 0 && tv.tv_usec < 1000000);
|
||||
|
||||
*t = (unsigned int)tv.tv_sec;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user