From: Arran Cudbard-Bell Date: Wed, 20 Jan 2021 13:02:48 +0000 (+0000) Subject: Unknown attributes get marked up as XLAT_VIRTUAL_UNRESOLVED X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea8c0df71befac03d95a7daa32b705ead6c54f7;p=thirdparty%2Ffreeradius-server.git Unknown attributes get marked up as XLAT_VIRTUAL_UNRESOLVED --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 97e994a85bd..b37dc4b54ca 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -622,7 +622,15 @@ static inline int xlat_tokenize_attribute(TALLOC_CTX *ctx, xlat_exp_t **head, xl goto error; } - xlat_exp_set_type(node, XLAT_ATTRIBUTE); + /* + * We don't know it's virtual but + * we don't know it's not either... + * + * Mark it up as virtual-unresolved + * and let the resolution code figure + * this out in a later pass. + */ + xlat_exp_set_type(node, XLAT_VIRTUAL_UNRESOLVED); xlat_exp_set_name_buffer_shallow(node, vpt->name); node->attr = vpt; node->flags.needs_resolving = true;