From: Alan T. DeKok Date: Sun, 14 Aug 2022 20:37:54 +0000 (-0400) Subject: %l can be uint64_t with no loss of generality. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da9d673266c5d7523e3a27737529116e6776c6cb;p=thirdparty%2Ffreeradius-server.git %l can be uint64_t with no loss of generality. CID #1508485 --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index 0b092e09c16..af9b38d9b30 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -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 */