]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Register an extremely generic set of arguments Closes #5351
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Sep 2024 16:58:58 +0000 (10:58 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 11 Sep 2024 02:52:54 +0000 (20:52 -0600)
src/lib/unlang/xlat_redundant.c

index 54326a31bb73cef6d4053d0ced53866fc564123b..99963722e096f56af7b3dab5cc87abb3f34652b6 100644 (file)
@@ -399,7 +399,6 @@ int xlat_register_redundant(CONF_SECTION *cs)
        char const              *name1;
        xlat_redundant_type_t   xr_type;
        xlat_func_flags_t       default_flags = 0;      /* Prevent warnings about default flags if xr_rype is corrupt */
-       xlat_arg_parser_t const *args = NULL;
 
        fr_type_t               return_type = FR_TYPE_NULL;
 
@@ -619,7 +618,7 @@ int xlat_register_redundant(CONF_SECTION *cs)
 
                        xlat_func_flags_set(xlat, flags);
                        xlat_func_instantiate_set(xlat, xlat_redundant_instantiate, xlat_redundant_inst_t, NULL, xr);
-                       if (args) xlat_func_args_set(xlat, xlat_redundant_args);
+                       xlat_func_args_set(xlat, xlat_redundant_args);
                }
        }
        talloc_free(mrx_tree);