]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize and print out constant flag
authorAlan T. DeKok <aland@freeradius.org>
Thu, 3 Apr 2025 14:58:29 +0000 (10:58 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 6 Apr 2025 15:36:18 +0000 (11:36 -0400)
src/lib/unlang/xlat_alloc.c
src/lib/unlang/xlat_tokenize.c

index 7f34225cf1e1c8fdcdab788195e57df220868751..62b42f80a8259b67c916d02b544d9bd734b3c0a9 100644 (file)
@@ -39,7 +39,7 @@ xlat_exp_head_t *_xlat_exp_head_alloc(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx)
        MEM(head = talloc_zero(ctx, xlat_exp_head_t));
 
        fr_dlist_init(&head->dlist, xlat_exp_t, entry);
-       head->flags.pure = head->flags.can_purify = true;
+       head->flags.constant = head->flags.pure = head->flags.can_purify = true;
 #ifndef NDEBUG
        head->file = file;
        head->line = line;
index 92dfa5a8eefcdcbd9d342188926ed06920951dae..e5b6cd1ce655ef163ae373523b752274998e09da 100644 (file)
@@ -1006,10 +1006,11 @@ static void _xlat_debug_head(xlat_exp_head_t const *head, int depth)
 
        fr_assert(head != NULL);
 
-       INFO_INDENT("head flags = %s %s %s",
+       INFO_INDENT("head flags = %s %s %s %s",
                    head->flags.needs_resolving ? "need_resolving," : "",
                    head->flags.pure ? "pure" : "",
-                   head->flags.can_purify ? "can_purify" : "");
+                   head->flags.can_purify ? "can_purify" : "",
+                   head->flags.constant ? "constant" : "");
 
        depth++;