]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
can't allocate client list parented from CONF_SECTION
authorAlan T. DeKok <aland@freeradius.org>
Wed, 22 Nov 2017 20:38:45 +0000 (15:38 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 22 Nov 2017 20:38:45 +0000 (15:38 -0500)
because it's frozen after parsing..

src/modules/proto_radius/proto_radius_udp.c

index 60c83118b3c241b3281536858db1b741af9f8b25..9120053ffc5b76e837c31498a0cf01d110564c4e 100644 (file)
@@ -1056,7 +1056,7 @@ static int mod_bootstrap(void *instance, CONF_SECTION *cs)
                /*
                 *      Allow static clients for this virtual server.
                 */
-               inst->dynamic_clients.clients = client_list_parse_section(inst->parent->server_cs, false);
+               inst->dynamic_clients.clients = client_list_init(NULL); // client_list_parse_section(inst->parent->server_cs, false);
        }
 
        return 0;
@@ -1072,6 +1072,8 @@ static int mod_detach(void *instance)
         *      delete our child event loop from the parent on close.
         */
 
+       if (inst->dynamic_clients.clients) TALLOC_FREE(inst->dynamic_clients.clients);
+
        close(inst->sockfd);
        return 0;
 }