]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Wrap time when calling sd_watchdog_event manually
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 23 Sep 2021 16:54:40 +0000 (11:54 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 23 Sep 2021 16:54:40 +0000 (11:54 -0500)
src/lib/server/main_loop.c

index 6b3597478c203e6daa991275edff555466c91fa0..2fda34f90d820a74b273e8c697d91b1da790ed25 100644 (file)
@@ -208,7 +208,7 @@ int main_loop_start(void)
        /*
         *      Start placating the watchdog (if told to do so).
         */
-       if (sd_watchdog_interval > 0) sd_watchdog_event(event_list, 0, NULL);
+       if (sd_watchdog_interval > 0) sd_watchdog_event(event_list, fr_time_wrap(0), NULL);
 #endif
 
        ret = fr_event_loop(event_list);