]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we now pop in unlang_run... no need to do it here
authorAlan T. DeKok <aland@freeradius.org>
Sun, 25 Jun 2017 13:01:54 +0000 (09:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 25 Jun 2017 13:01:54 +0000 (09:01 -0400)
src/main/unlang_interpret.c

index 441d0593bbb5f0183c943742e8050fbfa5d4b158..ef278a188b753d6e628d236ac593e31a477813c2 100644 (file)
@@ -1584,14 +1584,10 @@ rlm_rcode_t unlang_interpret(REQUEST *request, CONF_SECTION *cs, rlm_rcode_t act
 
        rcode = unlang_run(request, stack);
        if (rcode != RLM_MODULE_YIELD) {
+               rad_assert(stack->depth >= 0);
                rad_assert(stack->frame[stack->depth].top_frame);
                rad_assert(!stack->frame[stack->depth].instruction || /* processed the whole section */
                            stack->frame[stack->depth].instruction->type == UNLANG_TYPE_GROUP); /* sections are groups */
-               rad_assert(stack->depth > 0);
-               /*
-                *      ...and must now be popped if we're not yielding.
-                */
-               stack->depth--;
        }
 
        return rcode;