2
0
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:
Mark Andrews 2000-06-09 06:01:37 +00:00
parent e596c6fe81
commit ce1b0e505e

View File

@ -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;
}