]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove redundant code
authorAlan T. DeKok <aland@freeradius.org>
Sun, 31 Dec 2017 16:38:25 +0000 (11:38 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 31 Dec 2017 16:38:25 +0000 (11:38 -0500)
src/modules/proto_radius/proto_radius_auth.c

index a9b3eacd8524cb422a3188897a2c3ed78ba1fcc2..a5d148dc2f2e36d48a317a7da7a3b7714fa86b5f 100644 (file)
@@ -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;