Skip to content

Commit

Permalink
Assume the submodule emmits an error
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 23, 2020
1 parent 2c0a922 commit b77dacb
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/modules/rlm_radius/rlm_radius.c
Expand Up @@ -585,11 +585,7 @@ static int mod_instantiate(void *instance, UNUSED CONF_SECTION *conf)
{
rlm_radius_t *inst = talloc_get_type_abort(instance, rlm_radius_t);

if (inst->io->instantiate(inst->io_instance, inst->io_conf) < 0) {
cf_log_err(inst->io_conf, "Instantiate failed for \"%s\"",
inst->io->name);
return -1;
}
if (inst->io->instantiate(inst->io_instance, inst->io_conf) < 0) return -1;

return 0;
}
Expand Down Expand Up @@ -777,11 +773,7 @@ static int mod_bootstrap(void *instance, CONF_SECTION *conf)
/*
* Bootstrap the submodule.
*/
if (inst->io->bootstrap(inst->io_instance, inst->io_conf) < 0) {
cf_log_err(inst->io_conf, "Bootstrap failed for \"%s\"",
inst->io->name);
return -1;
}
if (inst->io->bootstrap(inst->io_instance, inst->io_conf) < 0) return -1;

return 0;
}
Expand Down

0 comments on commit b77dacb

Please sign in to comment.