From: Ondřej Surý Date: Wed, 25 Mar 2020 18:06:50 +0000 (+0100) Subject: Fix the tv_nsec check in isc_stdtime_get() X-Git-Tag: v9.17.1~23^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d06a62dd1bffe72b93f3a03c9cbfb57dcb2c20b;p=thirdparty%2Fbind9.git Fix the tv_nsec check in isc_stdtime_get() --- diff --git a/lib/isc/unix/stdtime.c b/lib/isc/unix/stdtime.c index a68ad31b175..80e9f255472 100644 --- a/lib/isc/unix/stdtime.c +++ b/lib/isc/unix/stdtime.c @@ -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; }