]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Do less work on check_config
authorAlan T. DeKok <aland@freeradius.org>
Sun, 7 Jun 2015 14:30:19 +0000 (10:30 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 7 Jun 2015 14:30:19 +0000 (10:30 -0400)
src/main/detail.c

index 4e801e9d1c4a5bf6d86b9f0230ab2cc876958618..f44d57a526491322cd8eb9d7a5f9c6bc35d2aa35 100644 (file)
@@ -1031,6 +1031,11 @@ int detail_parse(CONF_SECTION *cs, rad_listen_t *this)
        FR_INTEGER_BOUND_CHECK("retry_interval", data->retry_interval, >=, 4);
        FR_INTEGER_BOUND_CHECK("retry_interval", data->retry_interval, <=, 3600);
 
+       /*
+        *      Only checking the config.  Don't start threads or anything else.
+        */
+       if (check_config) return 0;
+
        /*
         *      If the filename is a glob, use "detail.work" as the
         *      work file name.
@@ -1078,11 +1083,6 @@ int detail_parse(CONF_SECTION *cs, rad_listen_t *this)
        client->secret = client->shortname;
        client->nas_type = talloc_strdup(data, "none"); /* Part of 'data' not dynamically allocated */
 
-       /*
-        *      Only checking the config.  Don't start threads or anything else.
-        */
-       if (check_config) return 0;
-
        /*
         *      Create the communication pipes.
         */