From: Arran Cudbard-Bell Date: Wed, 31 Jan 2018 01:20:33 +0000 (-0700) Subject: Initialise state tree earlier? X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7642a3760f64bab2fed38a98220e416d0331fcda;p=thirdparty%2Ffreeradius-server.git Initialise state tree earlier? We seem to start processing requests before it's started --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 44aea1c2340..d8c66af908c 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -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. */