From: Alan T. DeKok Date: Tue, 4 Aug 2026 15:28:38 +0000 (-0400) Subject: use "server foo" as the debug name, not just "foo" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fdfd5de5ccf913e2d814ea9a35d1b99aa50a261;p=thirdparty%2Ffreeradius-server.git use "server foo" as the debug name, not just "foo" this ensures that the debug output is standardized --- diff --git a/src/lib/unlang/call.c b/src/lib/unlang/call.c index ce0589fb7a..1e01a7d96a 100644 --- a/src/lib/unlang/call.c +++ b/src/lib/unlang/call.c @@ -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 = {