]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "remove unused variable"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 25 May 2021 14:56:54 +0000 (10:56 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 25 May 2021 14:56:54 +0000 (10:56 -0400)
This reverts commit 6ecfe311143227a8955c61a74510725e9fac57fd.

src/main/client.c

index bfe89cf8215ecacae988c5237c82d791ddce6dcd..20a5a927c77e1cd08aac46554e3684ed177da0fa 100644 (file)
@@ -550,7 +550,7 @@ RADCLIENT_LIST *client_list_parse_section(CONF_SECTION *section, bool tls_requir
 RADCLIENT_LIST *client_list_parse_section(CONF_SECTION *section, UNUSED bool tls_required)
 #endif
 {
-       bool            in_server = false;
+       bool            global = false, in_server = false;
        CONF_SECTION    *cs;
        RADCLIENT       *c = NULL;
        RADCLIENT_LIST  *clients = NULL;
@@ -579,6 +579,7 @@ RADCLIENT_LIST *client_list_parse_section(CONF_SECTION *section, UNUSED bool tls
        }
 
        if (cf_top_section(section) == section) {
+               global = true;
                clients->name = "global";
                clients->server = NULL;
        }