Skip to content

Commit

Permalink
Show the name of virtual-server
Browse files Browse the repository at this point in the history
  • Loading branch information
jpereira committed Sep 22, 2015
1 parent 3a7ce7f commit 6bc6cb4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,14 @@ rlm_rcode_t indexed_modcall(rlm_components_t comp, int idx, REQUEST *request)

if (idx == 0) {
list = server->mc[comp];
if (!list) RDEBUG3("Empty %s section. Using default return values.", section_type_value[comp].section);

if (!list) {
if (server->name) {
RDEBUG3("Empty %s section in virtual server \"%s\". Using default return values.",
section_type_value[comp].section, server->name);
} else {
RDEBUG3("Empty %s section. Using default return values.", section_type_value[comp].section);
}
}
} else {
indexed_modcallable *this;

Expand Down

0 comments on commit 6bc6cb4

Please sign in to comment.