From: Alan T. DeKok Date: Thu, 26 Sep 2019 02:35:05 +0000 (-0400) Subject: try to quiet static analyzer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc94de7aa21293f5342a7c1994c27da7f4fcc1e3;p=thirdparty%2Ffreeradius-server.git try to quiet static analyzer --- 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;