]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix various dumb issues
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Nov 2021 18:59:53 +0000 (14:59 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Nov 2021 18:59:53 +0000 (14:59 -0400)
src/lib/unlang/xlat_builtin.c
src/modules/rlm_test/rlm_test.c

index b8424af41874a33e267cc53c92745c0655623c61..9564f32724fd6809a515d8b6b2e5a1614e18109b 100644 (file)
@@ -627,7 +627,7 @@ static xlat_action_t xlat_load_balance(TALLOC_CTX *ctx, fr_dcursor_t *out,
                 *      cost.
                 */
                xlat = xlat_func_find(name, -1);
-               if (!xlat) return -1;
+               if (!xlat) return XLAT_ACTION_FAIL;
 
                return xlat->func.async(ctx, out, request, xlat->mod_inst, xlat->thread_uctx, in);
        }
@@ -713,6 +713,8 @@ int xlat_register_redundant(CONF_SECTION *cs)
 
        } else {
                fr_assert(0);
+               cf_log_err(cs, "Invalid redundant section verb");
+               return -1;
        }
 
        xr->cs = cs;
index c4f6841d1afa79627519961dbd8382c7972ec41f..1d8d39e4abe620d45ba0048cdd03e4f85c05af58 100644 (file)
@@ -439,7 +439,7 @@ static int mod_thread_detach(UNUSED fr_event_list_t *el, void *thread)
  *     that must be referenced in later calls, store a handle to it
  *     in *instance otherwise put a null pointer there.
  */
-static int mod_bootstrap(void *instance, UNUSED CONF_SECTION *conf)
+static int mod_bootstrap(void *instance, CONF_SECTION *conf)
 {
        xlat_t *xlat;
        rlm_test_t *inst = instance;