Skip to content

Commit

Permalink
If the module was optional (-sql) it's real name is "sql"
Browse files Browse the repository at this point in the history
So that the debugging output is clearer
  • Loading branch information
alandekok committed Mar 19, 2014
1 parent c7e5c06 commit c8e34bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/modcall.c
Expand Up @@ -1823,6 +1823,7 @@ static modcallable *do_compile_modsingle(modcallable *parent,
modcallable *csingle;
module_instance_t *this;
CONF_SECTION *cs, *subcs, *modules;
char const *realname;

if (cf_item_is_section(ci)) {
char const *name2;
Expand Down Expand Up @@ -2118,12 +2119,12 @@ static modcallable *do_compile_modsingle(modcallable *parent,
*/
modules = cf_section_find("modules");
this = NULL;
realname = modrefname;

if (modules) {
/*
* Try to load the optional module.
*/
char const *realname = modrefname;
if (realname[0] == '-') realname++;

/*
Expand Down Expand Up @@ -2224,7 +2225,7 @@ static modcallable *do_compile_modsingle(modcallable *parent,
sizeof csingle->actions);
}
rad_assert(modrefname != NULL);
csingle->name = modrefname;
csingle->name = realname;
csingle->type = MOD_SINGLE;
csingle->method = component;

Expand Down

0 comments on commit c8e34bb

Please sign in to comment.