]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't parse clients twice
authorAlan T. DeKok <aland@freeradius.org>
Thu, 27 May 2021 13:41:20 +0000 (09:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 27 May 2021 13:41:20 +0000 (09:41 -0400)
src/main/client.c

index 7f4d6545bb92f4ccc89012e04b6d7849bdd41f4c..59dbe670fba2b00f44bfb9fafab8447ded3b97e5 100644 (file)
@@ -575,9 +575,12 @@ RADCLIENT_LIST *client_list_parse_section(CONF_SECTION *section, UNUSED bool tls
        }
 
        if (cf_top_section(section) == section) {
+               if (clients->parsed) return clients;
+
                global = true;
                clients->name = "global";
                clients->server = NULL;
+               clients->parsed = true;
        }
 
        if (strcmp("server", cf_section_name1(section)) == 0) {