mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 16:02:52 -04:00
Require nanoseconds is valid, instead of t->nanoseconds, which is what we're
getting ready to set.
This commit is contained in:
parent
aa863b2d1e
commit
232fd751ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue