]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
-Wunused
authorAlan T. DeKok <aland@freeradius.org>
Mon, 18 Dec 2023 01:06:30 +0000 (20:06 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 18 Dec 2023 01:06:30 +0000 (20:06 -0500)
src/modules/rlm_files/rlm_files.c

index b66e70877e98c923e2216317c63da7779071e91c..2d62cecf8beb5ac2feeb2a91bfed3f9f9afbaae2 100644 (file)
@@ -156,11 +156,7 @@ static int getusersfile(TALLOC_CTX *ctx, char const *filename, fr_htrie_t **ptre
                reply_head = NULL;
 
                /*
-                *      Look for improper use of '=' in the
-                *      check items.  They should be using
-                *      '==' for on-the-wire RADIUS attributes,
-                *      and probably ':=' for server
-                *      configuration items.
+                *      Do various sanity checks.
                 */
                while ((map = map_list_next(&entry->check, map))) {
                        if (!tmpl_is_attr(map->lhs)) {
@@ -168,7 +164,6 @@ static int getusersfile(TALLOC_CTX *ctx, char const *filename, fr_htrie_t **ptre
                                      entry->filename, entry->lineno, map->lhs->name);
                                return -1;
                        }
-                       da = tmpl_attr_tail_da(map->lhs);
 
                        /*
                         *      Disallow regexes for now.