]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
mark up the client list as parsed, just before we return it.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 27 May 2021 14:26:12 +0000 (10:26 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 27 May 2021 14:26:12 +0000 (10:26 -0400)
src/main/client.c

index 7f4d6545bb92f4ccc89012e04b6d7849bdd41f4c..d717e38bfb35293471a2c97ea526b4cda4532e0b 100644 (file)
@@ -568,7 +568,6 @@ RADCLIENT_LIST *client_list_parse_section(CONF_SECTION *section, UNUSED bool tls
                 *      so we still need to parse the clients here.
                 */
                if (clients->parsed) return clients;            
-               clients->parsed = true;
        } else {
                clients = client_list_init(section);
                if (!clients) return NULL;
@@ -704,6 +703,7 @@ RADCLIENT_LIST *client_list_parse_section(CONF_SECTION *section, UNUSED bool tls
         */
        if (global) root_clients = clients;
 
+       clients->parsed = true;
        return clients;
 }