]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Warn about any virtual_sever sections which aren't listen sections that haven't been...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Mar 2018 07:43:30 +0000 (13:43 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 2 Mar 2018 07:43:30 +0000 (13:43 +0600)
src/main/virtual_servers.c

index 386cc8c5522cda59a182e5c53a4a99bb86ea6aeb..b35d92cb39d5b0122465162c7cd3bfb63deea259 100644 (file)
@@ -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;