]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize trie, even if we don't have dynamic clients
authorAlan T. DeKok <aland@freeradius.org>
Thu, 26 Apr 2018 02:11:18 +0000 (22:11 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 26 Apr 2018 02:11:37 +0000 (22:11 -0400)
src/modules/proto_radius/proto_radius.c

index 770c856949c80b6549f37a4944a0bf6ae92edef1..d49c0850b8a672336a437d5537aa3c81b256bdcb 100644 (file)
@@ -772,6 +772,15 @@ static int mod_instantiate(void *instance, CONF_SECTION *conf)
        FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, >=, 1024);
        FR_INTEGER_BOUND_CHECK("max_packet_size", inst->max_packet_size, <=, 65535);
 
+       /*
+        *      Create the trie of clients for this socket.
+        */
+       inst->io.trie = fr_trie_alloc(inst);
+       if (!inst->io.trie) {
+               cf_log_err(conf, "Instantiation failed for \"%s\"", inst->io.app_io->name);
+               return -1;
+       }
+
        /*
         *      Instantiate the master io submodule
         */
@@ -798,15 +807,6 @@ static int mod_instantiate(void *instance, CONF_SECTION *conf)
                }
        }
 
-       /*
-        *      Create the trie of clients for this socket.
-        */
-       inst->io.trie = fr_trie_alloc(inst);
-       if (!inst->io.trie) {
-               cf_log_err(conf, "Instantiation failed for \"%s\"", inst->io.app_io->name);
-               return -1;
-       }
-
        return 0;
 }