]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
comment out assertion check
authorAlan T. DeKok <aland@freeradius.org>
Mon, 11 Sep 2023 00:20:57 +0000 (20:20 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 11 Sep 2023 00:20:57 +0000 (20:20 -0400)
because it fails for update sections, where the vp being deleted
isn't parented from the list!

If we add the migration flags

-S rewrite_update=yes -S tmpl_tokenize_all_nested=yes

then the test passes.  We'll leave these checks disabled until
we either find and fix the issue (if we care) or until we enable
everything nested.

src/lib/util/pair_inline.c

index 3f17ddfd821aae10f1b987b3f91dc5da8b413f09..784faeb2648b58774432c911375016ac28368d7b 100644 (file)
@@ -93,8 +93,13 @@ _INLINE fr_pair_t *fr_pair_list_prev(fr_pair_list_t const *list, fr_pair_t const
  */
 _INLINE fr_pair_t *fr_pair_remove(fr_pair_list_t *list, fr_pair_t *vp)
 {
-#ifdef WITH_VERIFY_PTR
+       /*
+        *      This check is commented out because it fails for
+        *      update sections, things really don't work right :(
+        */
+#if 0
        fr_assert(fr_pair_order_list_in_a_list(vp));
+       fr_assert(list == fr_pair_parent_list(vp));
        list->verified = false;
 #endif