]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ignore internal servers, and print out more helpful messages
authorAlan T. DeKok <aland@freeradius.org>
Tue, 12 Sep 2017 15:09:09 +0000 (11:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 12 Sep 2017 15:09:09 +0000 (11:09 -0400)
src/main/virtual_servers.c

index e52aada9f6d1c8912f3dd2ad76cce51042d73803..578cc987844168dbdd47b0582b4c4651d9f86832 100644 (file)
@@ -489,11 +489,17 @@ int virtual_servers_bootstrap(CONF_SECTION *config)
                        return -1;
                }
 
+               /*
+                *      Ignore internally generated "server" sections,
+                *      they're for the unit tests.
+                */
+               if (!cf_filename(cs)) continue;
+
                /*
                 *      Forbid old-style virtual servers.
                 */
                if (!cf_pair_find(cs, "namespace")) {
-                       cf_log_err(cs, "server sections must set 'namesspace = ...'");
+                       cf_log_err(cs, "server %s { ...} section must set 'namesspace = ...'", server_name);
                        return -1;
                }
        }