]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove a direct access to the element count in lists
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 6 Oct 2021 22:33:44 +0000 (17:33 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 6 Oct 2021 22:33:44 +0000 (17:33 -0500)
src/lib/util/pair_legacy.c

index ef02b6683cafd3c91dcedc9c7d3e5f0baacaba14..60541f96449bd14689a7e367e0ac84f22d32e5dc 100644 (file)
@@ -670,7 +670,7 @@ int fr_pair_list_afrom_file(TALLOC_CTX *ctx, fr_dict_t const *dict, fr_pair_list
                 *      attributes on a particular line, but only if
                 *      it's comments.
                 */
-               if (fr_dlist_empty(&tmp_list.order)) {
+               if (!fr_pair_list_len(&tmp_list)) {
                        if (last_token == T_EOL) break;
 
                        /*