]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
%l can be uint64_t with no loss of generality.
authorAlan T. DeKok <aland@freeradius.org>
Sun, 14 Aug 2022 20:37:54 +0000 (16:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Aug 2022 19:50:21 +0000 (15:50 -0400)
CID #1508485

src/lib/unlang/xlat_eval.c

index 0b092e09c16e88a4638fd053ca9b4a16cf582cf1..af9b38d9b30d4fa0cb67648f7180cc4a62cc4b62 100644 (file)
@@ -586,9 +586,9 @@ xlat_action_t xlat_eval_one_letter(TALLOC_CTX *ctx, fr_value_box_list_t *out, re
                value->datum.uint8 = ts.tm_hour;
                break;
 
-       case 'l': /* Request timestamp as a 32-bit integer */
-               MEM(value = fr_value_box_alloc(ctx, FR_TYPE_UINT32, NULL, false));
-               value->datum.uint32 = (uint32_t ) now;
+       case 'l': /* Request timestamp as seconds since the epoch */
+               MEM(value = fr_value_box_alloc(ctx, FR_TYPE_UINT64, NULL, false));
+               value->datum.uint64 = (uint64_t ) now;
                break;
 
        case 'm': /* Request month */