From: Alan T. DeKok Date: Mon, 2 Dec 2019 14:25:02 +0000 (-0500) Subject: Internal functions aren't attributes. Fixes #3169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8379ea4d32f4fdf5b09aa5273ac2726cedd52b4;p=thirdparty%2Ffreeradius-server.git Internal functions aren't attributes. Fixes #3169 --- diff --git a/src/lib/server/xlat_tokenize.c b/src/lib/server/xlat_tokenize.c index 3248730a487..3714f99475e 100644 --- a/src/lib/server/xlat_tokenize.c +++ b/src/lib/server/xlat_tokenize.c @@ -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 */