]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we don't need to store node->attr for virtual attributes
authorAlan T. DeKok <aland@freeradius.org>
Mon, 22 Nov 2021 20:11:07 +0000 (15:11 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 22 Nov 2021 20:11:07 +0000 (15:11 -0500)
the function itself defines what to do

src/lib/unlang/xlat_tokenize.c

index 6cd3b7acc40aa9b255a989e3cc749233ee37762b..a49e96f74803fa632f0711ce6a7806fcc87aa99f 100644 (file)
@@ -588,7 +588,6 @@ static int xlat_resolve_virtual_attribute(xlat_exp_t *node, tmpl_t *vpt)
        XLAT_DEBUG("VIRTUAL <-- %pV",
                   fr_box_strvalue_len(vpt->name, vpt->len));
        node->call.func = func;
-       node->attr = vpt;       /* Store for context */
        node->flags.needs_async = func->needs_async;
 
        return 0;