mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
INSIST() on sane time from the kernel.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user