mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
Require nanoseconds is valid, instead of t->nanoseconds, which is what we're
getting ready to set.
This commit is contained in:
@@ -94,7 +94,7 @@ isc_time_set(isc_time_t *t, unsigned int seconds, unsigned int nanoseconds) {
|
|||||||
* epoch.
|
* epoch.
|
||||||
*/
|
*/
|
||||||
REQUIRE(t != NULL);
|
REQUIRE(t != NULL);
|
||||||
REQUIRE(t->nanoseconds < NS_PER_S);
|
REQUIRE(nanoseconds < NS_PER_S);
|
||||||
|
|
||||||
t->seconds = seconds;
|
t->seconds = seconds;
|
||||||
t->nanoseconds = nanoseconds;
|
t->nanoseconds = nanoseconds;
|
||||||
|
Reference in New Issue
Block a user