]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use %pV for values in %pairs.debug() developer/ndptech
authorNick Porter <nick@portercomputing.co.uk>
Wed, 28 Jan 2026 09:01:04 +0000 (09:01 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 29 Jan 2026 11:40:09 +0000 (11:40 +0000)
So that suppress_secrets is honoured

src/lib/unlang/xlat_builtin.c

index 2aab69718dfef4fc3dd6be849a4305b27c77fe14..ecc89338943e117705f9bc3020b3ae5e0703b442 100644 (file)
@@ -181,8 +181,7 @@ static void xlat_debug_attr_vp(request_t *request, fr_pair_t const *vp,
                break;
 
        default:
-               if (fr_pair_print_value_quoted(&sbuff, vp, T_DOUBLE_QUOTED_STRING) <= 0) return;
-               RIDEBUG2("%s", buffer);
+               RIDEBUG2("%s%pV", buffer, &vp->data);
        }
 
        if (!RDEBUG_ENABLED3) return;