]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
One conversion to sub-second timers missed.
authorShane Kerr <shane@isc.org>
Thu, 3 Jan 2008 09:46:59 +0000 (09:46 +0000)
committerShane Kerr <shane@isc.org>
Thu, 3 Jan 2008 09:46:59 +0000 (09:46 +0000)
server/mdb6.c

index 6c208e9f5ffe1e9d02bca645d4beb9f573ac4377..a7f59a083df0191c7a770ee84681a50c1ad19c78 100644 (file)
@@ -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);
        }