]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
reset when going to next, so that it is always done
authorAlan T. DeKok <aland@freeradius.org>
Sat, 5 Oct 2019 12:47:14 +0000 (08:47 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 5 Oct 2019 13:19:43 +0000 (09:19 -0400)
src/lib/unlang/map.c

index 09f9dc14343d394269706e3cf7024a8a7c0fed64..238a1dfd695ca18840ef9be72a4d7c17daca61ea 100644 (file)
@@ -194,8 +194,6 @@ static unlang_action_t list_mod_create(REQUEST *request, rlm_rcode_t *presult)
                        /* FALL-THROUGH */
 
                case UNLANG_UPDATE_MAP_EXPANDED_RHS:
-                       update_state->state = UNLANG_UPDATE_MAP_INIT;
-
                        /*
                         *      Concat the top level results together
                         */
@@ -213,6 +211,7 @@ static unlang_action_t list_mod_create(REQUEST *request, rlm_rcode_t *presult)
                        talloc_list_free(&update_state->rhs_result);
 
                next:
+                       update_state->state = UNLANG_UPDATE_MAP_INIT;
                        talloc_list_free(&update_state->lhs_result);
 
                        /*