mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +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.
|
||||
*/
|
||||
REQUIRE(t != NULL);
|
||||
REQUIRE(t->nanoseconds < NS_PER_S);
|
||||
REQUIRE(nanoseconds < NS_PER_S);
|
||||
|
||||
t->seconds = seconds;
|
||||
t->nanoseconds = nanoseconds;
|
||||
|
Reference in New Issue
Block a user