]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add newly created VPs to the state, not old VPs
authorAlan T. DeKok <aland@freeradius.org>
Mon, 16 Sep 2019 11:41:37 +0000 (07:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 16 Sep 2019 11:41:37 +0000 (07:41 -0400)
src/lib/server/state.c

index 8c7f9b416293471350ffb66bffbaab35237d41ed..008500fc807d397b9b79009ceb0e9e1ceec9cc7c 100644 (file)
@@ -761,7 +761,7 @@ void fr_state_store_in_parent(REQUEST *request, void *unique_ptr, int unique_int
                } else {
                        MEM(fr_pair_list_copy(request->parent->state_ctx, &head, request->state) >= 0);
                        request_data_talloc_add(request, (void *)fr_state_store_in_parent, 0, VALUE_PAIR,
-                                               request->state, true, false, true);
+                                               head, true, false, true);
                        fr_pair_list_free(&request->state);
                }
        }