From: Arran Cudbard-Bell Date: Sat, 18 May 2019 01:28:57 +0000 (-0400) Subject: Update *when, when calling fr_event_timer_run X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c2d677270e1dfd140073e6f33e5cdaa00670591;p=thirdparty%2Ffreeradius-server.git Update *when, when calling fr_event_timer_run --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index f29cde6613f..1f969766225 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -1407,7 +1407,10 @@ int fr_event_timer_run(fr_event_list_t *el, fr_time_t *when) /* * See if it's time to do this one. */ - if (ev->when > *when) return 0; + if (ev->when > *when) { + *when = ev->when; + return 0; + } callback = ev->callback; memcpy(&uctx, &ev->uctx, sizeof(uctx));