From: Alan T. DeKok Date: Sun, 7 Jun 2015 14:30:19 +0000 (-0400) Subject: Do less work on check_config X-Git-Tag: release_3_0_9~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c378ce30eb497a71e864428082fb2e6ec575a10;p=thirdparty%2Ffreeradius-server.git Do less work on check_config --- diff --git a/src/main/detail.c b/src/main/detail.c index 4e801e9d1c4..f44d57a5264 100644 --- a/src/main/detail.c +++ b/src/main/detail.c @@ -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. */