]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
try to quiet static analyzer
authorAlan T. DeKok <aland@freeradius.org>
Thu, 26 Sep 2019 02:35:05 +0000 (22:35 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 26 Sep 2019 15:46:05 +0000 (11:46 -0400)
src/lib/unlang/load_balance.c

index 0667025d265aa8d17293070c63a8fff353a8cd01..9d4974aeeb34ef18ad9c2ac306d44a0b7de4b796 100644 (file)
@@ -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;