]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't convert LIST to ATTRIBUTE
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jul 2015 17:56:54 +0000 (13:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jul 2015 17:56:54 +0000 (13:56 -0400)
src/main/xlat.c

index 1656a2f513d5b57b236dc43ce9e78034c2140611..cc76378ba7e41d4317266ea21b693a8f5f2f2738 100644 (file)
@@ -2540,7 +2540,7 @@ vp_tmpl_t *xlat_to_tmpl_attr(TALLOC_CTX *ctx, xlat_exp_t *node)
 {
        vp_tmpl_t *vpt;
 
-       if (node->next || (node->type != XLAT_ATTRIBUTE)) return NULL;
+       if (node->next || (node->type != XLAT_ATTRIBUTE) || (node->attr.type != TMPL_TYPE_ATTR)) return NULL;
 
        /*
         *   Concat means something completely different as an attribute reference