]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
correct order of comparisons
authorAlan T. DeKok <aland@freeradius.org>
Fri, 18 Nov 2022 15:00:12 +0000 (10:00 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 21 Nov 2022 15:51:08 +0000 (10:51 -0500)
src/lib/util/edit.c

index 3070a87861b41f7121ac82dee5ee240e5a2843a1..4bde0d6b40babd7ce0297a4feee8c2a89ec1cfcf 100644 (file)
@@ -851,7 +851,7 @@ static int fr_edit_list_delete_list(fr_edit_list_t *el, fr_pair_list_t *list, fr
                        /*
                         *      It doesn't match, keep it.  If it matches, delete it.
                         */
-                       rcode = fr_value_box_cmp_op(vp->op, &vp->data, &found->data);
+                       rcode = fr_value_box_cmp_op(vp->op, &found->data, &vp->data);
                        if (rcode < 0) return -1;
 
                        if (!rcode) continue;