]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move assertion
authorAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 22:19:39 +0000 (18:19 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 27 Jun 2018 22:19:39 +0000 (18:19 -0400)
src/main/command.c

index 02531d1ff28ddca0c34a3b0ea0f5a170cd62765e..4266a4d64e68f35b5dd8003a627c4b931b6cb4f6 100644 (file)
@@ -588,9 +588,9 @@ check_child:
         *      the next command at the current level.
         */
        if (cmd->child) {
+               rad_assert(stack->depth < MAX_STACK);
                info.parents[stack->depth] = cmd->name;
                stack->depth++;
-               rad_assert(stack->depth < MAX_STACK);
                stack->entry[stack->depth] = cmd->child;
 
                /*