From cc94de7aa21293f5342a7c1994c27da7f4fcc1e3 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 25 Sep 2019 22:35:05 -0400 Subject: [PATCH] try to quiet static analyzer --- src/lib/unlang/load_balance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/unlang/load_balance.c b/src/lib/unlang/load_balance.c index 0667025d265..9d4974aeeb3 100644 --- a/src/lib/unlang/load_balance.c +++ b/src/lib/unlang/load_balance.c @@ -71,7 +71,6 @@ static unlang_action_t unlang_load_balance_next(REQUEST *request, rlm_rcode_t *p if (redundant->child->actions[*presult] == MOD_ACTION_RETURN) { return UNLANG_ACTION_CALCULATE_RESULT; } - } /* @@ -89,6 +88,7 @@ static unlang_action_t unlang_load_balance_next(REQUEST *request, rlm_rcode_t *p * modules in the unlang_frame_state_redundant_t * structure. */ + rad_assert(redundant->child != NULL); redundant->child = redundant->child->next; if (!redundant->child) redundant->child = g->children; -- 2.47.3