]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow ${Foo-Bar:-%{...}} again release_2_2_0
authorAlan T. DeKok <aland@freeradius.org>
Mon, 10 Sep 2012 11:51:34 +0000 (13:51 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 10 Sep 2012 11:51:34 +0000 (13:51 +0200)
src/main/xlat.c

index 0dc7df15929577716be6116bba6c88dd676da453..3dd9dc9f8bc3853266c2eb7c20b640b57d48ce0e 100644 (file)
@@ -1021,6 +1021,7 @@ static int decode_attribute(const char **from, char **to, int freespace,
                }
 
                if (*l == ':') {
+                       if (l[1] == '-') break;
                        if (isdigit(l[1])) break;
 
                        module_name = p; /* start of name */