From: Alan T. DeKok Date: Fri, 8 Apr 2022 17:31:59 +0000 (-0400) Subject: update comments to clarify X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e0e8e29a848af773f8599c8972be612e964507;p=thirdparty%2Ffreeradius-server.git update comments to clarify --- diff --git a/src/lib/util/pair.c b/src/lib/util/pair.c index cc615ed5fe..01526ca4f0 100644 --- a/src/lib/util/pair.c +++ b/src/lib/util/pair.c @@ -878,6 +878,9 @@ static int _pair_list_dcursor_insert(fr_dlist_head_t *list, void *to_insert, UNU tlist = fr_tlist_head_from_dlist(list); + /* + * Mark the pair as inserted into the list. + */ fr_pair_order_list_set_head(tlist, vp); PAIR_VERIFY(vp); @@ -905,6 +908,9 @@ static int _pair_list_dcursor_remove(NDEBUG_UNUSED fr_dlist_head_t *list, void * fr_assert(vp->order_entry.entry.list_head == tlist); #endif + /* + * Mark the pair as removed from the list. + */ fr_pair_order_list_set_head(NULL, vp); PAIR_VERIFY(vp);