the outer parent_map is taken from starting to parse the section.
map_afrom_cs() will parse multiple child sections, and call the
validation function for each one. But will only pass the top-level
parent_map.
So fixup the ref to use the actual parent when there are multiple
levels
return -1;
}
+ /*
+ * map_afrom_cs() will build its tree recursively, and call us for each child map.
+ */
+ if (map->parent && (map->parent != parent_map)) parent_map = map->parent;
+
parent = tmpl_attr_tail_da(parent_map->lhs);
/*