]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Internal functions aren't attributes. Fixes #3169
authorAlan T. DeKok <aland@freeradius.org>
Mon, 2 Dec 2019 14:25:02 +0000 (09:25 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 2 Dec 2019 14:25:02 +0000 (09:25 -0500)
src/lib/server/xlat_tokenize.c

index 3248730a4874531e89703b9e45c5cf8ee2ea5178..3714f99475ed4d898a4efd3b8c656e8f4ce6df7d 100644 (file)
@@ -356,7 +356,7 @@ static inline ssize_t xlat_tokenize_attribute(TALLOC_CTX *ctx, xlat_exp_t **head
         */
        if (tmpl_is_attr_undefined(vpt)) {
                func = xlat_func_find(vpt->tmpl_unknown_name);
-               if (func) {
+               if (func && (func->type == XLAT_FUNC_SYNC)) {
                        node = xlat_exp_alloc(ctx, XLAT_VIRTUAL,
                                              vpt->tmpl_unknown_name, talloc_array_length(vpt->tmpl_unknown_name) - 1);
                        talloc_free(vpt);       /* Free the tmpl, we don't need it */