From: Nick Porter Date: Fri, 8 Jan 2021 13:35:37 +0000 (+0000) Subject: Replace cursor functions with pair_list functions in rlm_cache.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=272571ad46dc98a381bb15e16bdc0ea15dab9051;p=thirdparty%2Ffreeradius-server.git Replace cursor functions with pair_list functions in rlm_cache.c --- diff --git a/src/modules/rlm_cache/rlm_cache.c b/src/modules/rlm_cache/rlm_cache.c index d085450f440..59cdcff8154 100644 --- a/src/modules/rlm_cache/rlm_cache.c +++ b/src/modules/rlm_cache/rlm_cache.c @@ -335,7 +335,6 @@ static unlang_action_t cache_insert(rlm_rcode_t *p_result, pool = talloc_pool(NULL, 2048); for (map = inst->maps; map != NULL; map = map->next) { fr_pair_list_t to_cache; - fr_cursor_t cursor; fr_pair_list_init(&to_cache); fr_assert(map->lhs && map->rhs); @@ -349,9 +348,9 @@ static unlang_action_t cache_insert(rlm_rcode_t *p_result, continue; } - for (vp = fr_cursor_init(&cursor, &to_cache); + for (vp = fr_pair_list_head(&to_cache); vp; - vp = fr_cursor_next(&cursor)) { + vp = fr_pair_list_next(&to_cache, vp)) { /* * Prevent people from accidentally caching * cache control attributes.