]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Initialise state tree earlier?
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Jan 2018 01:20:33 +0000 (18:20 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Jan 2018 01:20:33 +0000 (18:20 -0700)
We seem to start processing requests before it's started

src/main/radiusd.c

index 44aea1c23401ab49bf94c5ba22a48380a5d9de31..d8c66af908ce989d53d817bdc3f13d755267b76a 100644 (file)
@@ -613,6 +613,11 @@ int main(int argc, char *argv[])
                fr_exit(EXIT_FAILURE);
        }
 
+       /*
+        *  Initialise the state rbtree (used to link multiple rounds of challenges).
+        */
+       global_state = fr_state_tree_init(autofree, main_config.max_requests * 2, main_config.continuation_timeout);
+
        /*
         *      Start the network / worker threads.
         */
@@ -740,11 +745,6 @@ int main(int argc, char *argv[])
         */
        fr_strerror();
 
-       /*
-        *  Initialise the state rbtree (used to link multiple rounds of challenges).
-        */
-       global_state = fr_state_tree_init(autofree, main_config.max_requests * 2, main_config.continuation_timeout);
-
        /*
         *  Process requests until HUP or exit.
         */