mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-28 21:17:54 +00:00
Fix the tv_nsec check in isc_stdtime_get()
This commit is contained in:
parent
4154677f2e
commit
0d06a62dd1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user