]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use "server foo" as the debug name, not just "foo"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 4 Aug 2026 15:28:38 +0000 (11:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 4 Aug 2026 15:28:38 +0000 (11:28 -0400)
this ensures that the debug output is standardized

src/lib/unlang/call.c

index ce0589fb7a52412ae337a256ebac522374831a01..1e01a7d96a670892c654870d732168b064a78283 100644 (file)
@@ -145,7 +145,7 @@ static unlang_action_t unlang_call_frame_init(unlang_result_t *p_result, request
        return UNLANG_ACTION_PUSHED_CHILD;
 }
 
-/** Push a call frame onto the stack
+/** Push a virtual server #CONF_SECTION as a call frame onto the stack
  *
  * This should be used instead of virtual_server_push in the majority of the code
  */
@@ -177,7 +177,7 @@ unlang_action_t unlang_call_push(unlang_result_t *p_result, request_t *request,
         *      stack.  The only sane way to do it is to attach it to
         *      the frame state.
         */
-       name = cf_section_name2(server_cs);
+       name = talloc_asprintf(request, "server %s", cf_section_name2(server_cs));
        MEM(c = talloc(stack, unlang_call_t));  /* Free at the same time as the state */
        *c = (unlang_call_t){
                .group = {