From: Alan T. DeKok Date: Mon, 16 Sep 2019 11:41:37 +0000 (-0400) Subject: add newly created VPs to the state, not old VPs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5dced2fb7160f016ce34f1dafb13caaf86f1ad9d;p=thirdparty%2Ffreeradius-server.git add newly created VPs to the state, not old VPs --- diff --git a/src/lib/server/state.c b/src/lib/server/state.c index 8c7f9b41629..008500fc807 100644 --- a/src/lib/server/state.c +++ b/src/lib/server/state.c @@ -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); } }