Merge branch '1679-fix-the-tv_nsec_check' into 'master'

Fix the tv_nsec check in isc_stdtime_get()

Closes #1679

See merge request isc-projects/bind9!3292
This commit is contained in:
Ondřej Surý 2020-03-25 19:28:59 +00:00
commit 03727c1462

View file

@ -45,7 +45,7 @@ isc_stdtime_get(isc_stdtime_t *t) {
strbuf);
}
REQUIRE(ts.tv_sec > 0 && ts.tv_nsec > 0 && ts.tv_nsec < NS_PER_S);
REQUIRE(ts.tv_sec > 0 && ts.tv_nsec >= 0 && ts.tv_nsec < NS_PER_S);
*t = (unsigned int)ts.tv_sec;
}