]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
If we're expanding a non-attribute, try the namne
authorAlan T. DeKok <aland@freeradius.org>
Wed, 22 Aug 2012 08:15:48 +0000 (10:15 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 22 Aug 2012 08:15:48 +0000 (10:15 +0200)
src/main/xlat.c

index 43db8a2a47f10d4609b7a257d19da7f7296fdbff..c5560ff1460d7db2d8348e0fce2ac9af2270bb94 100644 (file)
@@ -1179,7 +1179,7 @@ static int decode_attribute(const char **from, char **to, int freespace,
         *      or regex reference.
         */
        if (!module_name) {
-               if (isdigit(*p)) {
+               if (isdigit(*p) || !dict_attrbyname(p)) {
                        module_name = xlat_str = p;
                } else {
                        module_name = internal_xlat[1];