Skip to content

Commit

Permalink
don't push config parse rules if there's no config
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 16, 2018
1 parent 3065c44 commit 5a29353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/dl.c
Expand Up @@ -856,7 +856,7 @@ int dl_instance(TALLOC_CTX *ctx, dl_instance_t **out,
*/
cf_data_add(conf, dl_inst, dl_inst->module->name, false);

if (dl_inst->module->common->config) {
if (dl_inst->module->common->config && conf) {
if ((cf_section_rules_push(conf, dl_inst->module->common->config)) < 0 ||
(cf_section_parse(dl_inst->data, dl_inst->data, conf) < 0)) {
cf_log_err(conf, "Failed evaluating configuration for module \"%s\"", dl_inst->module->name);
Expand Down

0 comments on commit 5a29353

Please sign in to comment.