Commit b6efecc4 authored by Daniel Salzman's avatar Daniel Salzman

modules: fix config check callback execution

parent b5b072a1
......@@ -99,7 +99,8 @@ static int mod_load(
const yp_item_t schema[] = {
{ name, YP_TGRP, YP_VGRP = { sub_items },
YP_FALLOC | YP_FMULTI | CONF_IO_FRLD_MOD | CONF_IO_FRLD_ZONES },
YP_FALLOC | YP_FMULTI | CONF_IO_FRLD_MOD | CONF_IO_FRLD_ZONES,
{ mod->api->config_check } },
{ NULL }
};
......
......@@ -487,8 +487,8 @@ knotd_conf_t knotd_conf_check_item(knotd_conf_check_args_t *args,
knotd_conf_t out = { { 0 } };
conf_val_t val = conf_rawid_get_txn(args->extra->conf, args->extra->txn,
args->item->parent->name,
item_name, args->id, args->id_len);
args->item->name, item_name,
args->id, args->id_len);
set_conf_out(&out, &val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment