From: Alan T. DeKok Date: Fri, 12 Dec 2025 18:52:01 +0000 (-0500) Subject: verify the list before returning it to the caller X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a2d6831346efca0e5d072e76e3b3554eb68926;p=thirdparty%2Ffreeradius-server.git verify the list before returning it to the caller --- diff --git a/src/lib/util/pair_legacy.c b/src/lib/util/pair_legacy.c index 335c8b01547..fd94da3b1fe 100644 --- a/src/lib/util/pair_legacy.c +++ b/src/lib/util/pair_legacy.c @@ -1196,6 +1196,10 @@ int fr_pair_list_afrom_file(TALLOC_CTX *ctx, fr_dict_t const *dict, fr_pair_list found = true; } +#ifndef NDEBUG + fr_pair_list_verify(__FILE__, __LINE__, ctx, &tmp_list, true); +#endif + fr_pair_list_append(out, &tmp_list); *pfiledone = true;