mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 05:47:45 +00:00
One conversion to sub-second timers missed.
This commit is contained in:
parent
be62cf0675
commit
f6188435ab
@ -2271,6 +2271,7 @@ schedule_prefix_timeout(struct ipv6_ppool *ppool) {
|
||||
struct iaprefix *tmp;
|
||||
time_t timeout;
|
||||
time_t next_timeout;
|
||||
struct timeval tv;
|
||||
|
||||
next_timeout = MAX_TIME;
|
||||
|
||||
@ -2293,7 +2294,9 @@ schedule_prefix_timeout(struct ipv6_ppool *ppool) {
|
||||
}
|
||||
|
||||
if (next_timeout < MAX_TIME) {
|
||||
add_timeout(next_timeout, prefix_timeout_support, ppool,
|
||||
tv.tv_sec = next_timeout;
|
||||
tv.tv_usec = 0;
|
||||
add_timeout(&tv, prefix_timeout_support, ppool,
|
||||
(tvref_t)ipv6_ppool_reference,
|
||||
(tvunref_t)ipv6_ppool_dereference);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user