Move checks for &Attribute-Name into radius_parse_attr()
authorAlan T. DeKok <aland@freeradius.org>
Fri, 18 Apr 2014 03:31:55 +0000 (23:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 18 Apr 2014 03:38:41 +0000 (23:38 -0400)
commit039f44a6af6bb7bcb64f8c291518a3a61ea87839
treeecf08b8faf8f45d80dabc652764b8fa1fc9ffcf3
parente1eb88df035a29ed29cee12f3c331c837fc6478b
Move checks for &Attribute-Name into radius_parse_attr()

and clean up the rest of the code in the server which checked
for '&'.

As a result, the rest of the code gets simpler.  We get better
error messages, and a few corner cases get fixed.  i.e. where
the '&' was NOT being handled, and radius_parse_attr() was being
called, with what SHOULD have been an attribute.  So if the poor
users followed the docs and did &Attribute-Name, they would get
a parse error, and their brains would explode.  We don't want
that...
src/main/map.c
src/main/modcall.c
src/main/parser.c
src/main/xlat.c
src/modules/rlm_unpack/rlm_unpack.c