From: Alan T. DeKok Date: Fri, 18 Nov 2022 15:00:12 +0000 (-0500) Subject: correct order of comparisons X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7fbb39484a0f6632587fddb496c2712f0f4a176;p=thirdparty%2Ffreeradius-server.git correct order of comparisons --- diff --git a/src/lib/util/edit.c b/src/lib/util/edit.c index 3070a87861b..4bde0d6b40b 100644 --- a/src/lib/util/edit.c +++ b/src/lib/util/edit.c @@ -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;