]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix time addition in proto_ldap_sync
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 23 Sep 2021 16:59:48 +0000 (11:59 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 23 Sep 2021 16:59:48 +0000 (11:59 -0500)
src/modules/proto_ldap_sync/proto_ldap_sync.c

index 48e90d5d9dcccc5cd7806497657c239be3c0daeb..f8b72bd3ec2a30ab2cb99fb42d94c4458eca4897 100644 (file)
@@ -580,7 +580,7 @@ static void proto_ldap_sync_reinit(fr_event_list_t *el, fr_time_t now, void *use
         *      We want the time from when we were called
         */
        if (fr_event_timer_at(inst, el, &inst->sync_retry_ev,
-                             now + inst->sync_retry_interval,
+                             fr_time_add(now, inst->sync_retry_interval),
                              proto_ldap_sync_reinit, user_ctx) < 0) {
                FATAL("Failed inserting event: %s", fr_strerror());
        }