]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove pair from temporary list before adding to correct list
authorNick Porter <nick@portercomputing.co.uk>
Wed, 27 Jan 2021 20:33:56 +0000 (20:33 +0000)
committerAlan DeKok <aland@freeradius.org>
Wed, 27 Jan 2021 21:15:14 +0000 (16:15 -0500)
src/modules/rlm_attr_filter/rlm_attr_filter.c

index 0c102d044fb0b0329ce9c222ad5f47928afb37d7..53b3d58efc16746d789b34a8c3b42a4a14da3530 100644 (file)
@@ -256,6 +256,12 @@ static unlang_action_t CC_HINT(nonnull(1,2)) attr_filter_common(rlm_rcode_t *p_r
                                relax_filter = check_item->vp_uint32;
                        }
 
+                       /*
+                        *      Remove pair from temporary list ready to
+                        *      add to the correct destination
+                        */
+                       fr_pair_remove(&tmp_list, check_item);
+
                        /*
                         *    If it is a SET operator, add the attribute to
                         *    the output list without checking it.