From: Alan T. DeKok Date: Sun, 31 Dec 2017 16:38:25 +0000 (-0500) Subject: remove redundant code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8eeb0b66e448fbd5d37df05dab66b4a2c66a4313;p=thirdparty%2Ffreeradius-server.git remove redundant code --- diff --git a/src/modules/proto_radius/proto_radius_auth.c b/src/modules/proto_radius/proto_radius_auth.c index a9b3eacd852..a5d148dc2f2 100644 --- a/src/modules/proto_radius/proto_radius_auth.c +++ b/src/modules/proto_radius/proto_radius_auth.c @@ -534,33 +534,6 @@ static fr_io_final_t mod_process(REQUEST *request, fr_io_action_t action) } -/* - * Ensure that the "recv Access-Request" etc. sections are compiled. - */ -static int auth_listen_compile(CONF_SECTION *server_cs, UNUSED CONF_SECTION *listen_cs) -{ - CONF_SECTION *subcs = NULL; - - while ((subcs = cf_section_find_next(server_cs, subcs, "authenticate", NULL))) { - char const *name2; - - name2 = cf_section_name2(subcs); - if (!name2) { - cf_log_err(subcs, "A second name is required for the 'authenticate { ... }' section"); - return -1; - } - - cf_log_debug(subcs, "Loading authenticate %s {...}", name2); - - if (unlang_compile(subcs, MOD_AUTHENTICATE) < 0) { - cf_log_err(subcs, "Failed compiling 'authenticate %s { ... }' section", name2); - return -1; - } - } - - return 0; -} - static int mod_bootstrap(UNUSED void *instance, CONF_SECTION *listen_cs) { CONF_SECTION *server_cs; @@ -592,8 +565,6 @@ static int mod_instantiate(UNUSED void *instance, CONF_SECTION *listen_cs) server_cs = cf_item_to_section(cf_parent(listen_cs)); rad_assert(strcmp(cf_section_name1(server_cs), "server") == 0); - if (auth_listen_compile(server_cs, listen_cs) < 0) return -1; - while ((subcs = cf_section_find_next(server_cs, subcs, "authenticate", CF_IDENT_ANY))) { int rcode; char const *name2;