]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
notes on time
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:52:49 +0000 (08:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 12:52:49 +0000 (08:52 -0400)
src/lib/unlang/xlat_builtin.c

index 18eb2afbce1c756d562548b99aedf81e12d86a87..76d0099d6ba4cdd8d9be05ed77be7c2ff186ef8b 100644 (file)
@@ -1251,6 +1251,9 @@ static xlat_action_t xlat_func_next_time(TALLOC_CTX *ctx, fr_dcursor_t *out, req
        fr_value_box_t  *in_head = fr_dlist_head(in);
        fr_value_box_t  *vb;
 
+       /*
+        *      We want to limit based on _now_, not on when they logged in.
+        */
        now = time(NULL);
        local = localtime_r(&now, &local_buff);