From: James Jones Date: Fri, 13 May 2022 21:25:13 +0000 (-0500) Subject: Add checks of fr_lst_insert() calls (CID #1503950, #1504014) (#4512) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96b19c9c8d33549f22229c5b82d960af9a89fb5d;p=thirdparty%2Ffreeradius-server.git Add checks of fr_lst_insert() calls (CID #1503950, #1504014) (#4512) --- diff --git a/src/lib/util/lst_tests.c b/src/lib/util/lst_tests.c index 9abd12368c6..30fad15e1d4 100644 --- a/src/lib/util/lst_tests.c +++ b/src/lib/util/lst_tests.c @@ -379,7 +379,7 @@ static void lst_iter(void) populate_values(values, NUM_ELEMENTS(values)); - for (unsigned int i = 0; i < NUM_ELEMENTS(values); i++) fr_lst_insert(lst, &values[i]); + for (unsigned int i = 0; i < NUM_ELEMENTS(values); i++) TEST_CHECK(fr_lst_insert(lst, &values[i]) == 0); data = fr_lst_iter_init(lst, &iter); @@ -447,7 +447,7 @@ static void queue_cmp(unsigned int count) TEST_CHECK(lst != NULL); start_insert = fr_time(); - for (i = 0; i < count; i++) fr_lst_insert(lst, &values[i]); + for (i = 0; i < count; i++) TEST_CHECK(fr_lst_insert(lst, &values[i]) == 0); end_insert = fr_time(); start_pop = fr_time();