From: Arran Cudbard-Bell Date: Thu, 23 Sep 2021 16:59:48 +0000 (-0500) Subject: Fix time addition in proto_ldap_sync X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5c9c9c71c8f72530183fb92517d46bb8f42934;p=thirdparty%2Ffreeradius-server.git Fix time addition in proto_ldap_sync --- diff --git a/src/modules/proto_ldap_sync/proto_ldap_sync.c b/src/modules/proto_ldap_sync/proto_ldap_sync.c index 48e90d5d9dc..f8b72bd3ec2 100644 --- a/src/modules/proto_ldap_sync/proto_ldap_sync.c +++ b/src/modules/proto_ldap_sync/proto_ldap_sync.c @@ -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()); }