Commit 0d06a62d authored by Ondřej Surý's avatar Ondřej Surý

Fix the tv_nsec check in isc_stdtime_get()

parent 4154677f
Pipeline #37610 passed with stages
in 31 minutes and 26 seconds
......@@ -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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment