From: Alan T. DeKok Date: Thu, 26 Apr 2018 02:11:18 +0000 (-0400) Subject: initialize trie, even if we don't have dynamic clients X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e16b1852fc581a0449634c2ed7639a3eb3aec047;p=thirdparty%2Ffreeradius-server.git initialize trie, even if we don't have dynamic clients --- diff --git a/src/modules/proto_radius/proto_radius.c b/src/modules/proto_radius/proto_radius.c index 770c856949c..d49c0850b8a 100644 --- a/src/modules/proto_radius/proto_radius.c +++ b/src/modules/proto_radius/proto_radius.c @@ -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; }