From: Arran Cudbard-Bell Date: Fri, 2 Mar 2018 07:43:30 +0000 (+0600) Subject: Warn about any virtual_sever sections which aren't listen sections that haven't been... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab7d0ab35cd3613d91d2a0c16a8a6a8857afcff6;p=thirdparty%2Ffreeradius-server.git Warn about any virtual_sever sections which aren't listen sections that haven't been compiled --- diff --git a/src/main/virtual_servers.c b/src/main/virtual_servers.c index 386cc8c5522..b35d92cb39d 100644 --- a/src/main/virtual_servers.c +++ b/src/main/virtual_servers.c @@ -421,18 +421,23 @@ int virtual_servers_instantiate(void) for (ci = cf_item_next(cs, NULL); ci != NULL; ci = cf_item_next(cs, ci)) { - char const *name; - CONF_SECTION *subcs; + char const *name; + CONF_SECTION *subcs; if (!cf_item_is_section(ci)) continue; - subcs = cf_item_to_section(ci); name = cf_section_name1(subcs); - if ((strcmp(name, "recv") != 0) && - (strcmp(name, "send") != 0)) continue; + /* + * Skip listen sections + */ + if (strcmp(name, "listen") == 0) continue; + /* + * For every other section, warn if it hasn't + * been compiled. + */ if (!cf_data_find(subcs, unlang_group_t, NULL)) { char const *name2;