* block
*/
static int load_subcomponent_section(modcallable *parent, CONF_SECTION *cs,
- rbtree_t *components, int attr, int comp)
+ rbtree_t *components,
+ const DICT_ATTR *dattr, int comp)
{
indexed_modcallable *subcomp;
modcallable *ml;
* automatically. If it isn't found, it's a serious
* error.
*/
- dval = dict_valbyname(attr, 0, name2);
+ dval = dict_valbyname(dattr->attr, dattr->vendor, name2);
if (!dval) {
cf_log_err(cf_sectiontoitem(cs),
"%s %s Not previously configured",
section_type_value[comp].typename) == 0) {
if (!load_subcomponent_section(NULL, scs,
components,
- dattr->attr,
+ dattr,
comp)) {
return -1; /* FIXME: memleak? */
}
DEBUG2(" Module: Checking dhcp %s {...} for more modules to load", name2);
if (!load_subcomponent_section(NULL, subcs,
components,
- dattr->attr,
+ dattr,
RLM_COMPONENT_POST_AUTH)) {
goto error; /* FIXME: memleak? */
}