update outer.reply {
User-Name := foo
}
ends up parsing "User-Name" with a default list of "outer",
BUT because "User-Name" has no ".", the old code would return
a hard-coded CURRENT
cs_list = p = cf_section_name2(cs);
if (cs_list) {
- request_def = radius_request_name(&p, REQUEST_UNKNOWN);
+ request_def = radius_request_name(&p, REQUEST_CURRENT);
if (request_def == REQUEST_UNKNOWN) {
cf_log_err(ci, "Default request specified "
"in mapping section is invalid");
p = strchr(*name, '.');
if (!p) {
- return REQUEST_CURRENT;
+ return def;
}
/*
p - *name);
/*
- * If we get a VALID LIST, skip it.
+ * If we get a valid name, skip it.
*/
if (request != REQUEST_UNKNOWN) {
*name = p + 1;