From: Nick Porter Date: Fri, 8 Jan 2021 14:43:17 +0000 (+0000) Subject: Replace cursor functions with pair_list functions in rlm_client.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd1cd21f8cffb06151c0f32f5dbd6e8dfe832ea6;p=thirdparty%2Ffreeradius-server.git Replace cursor functions with pair_list functions in rlm_client.c --- diff --git a/src/modules/rlm_client/rlm_client.c b/src/modules/rlm_client/rlm_client.c index 2b2357b2919..5da170c2e38 100644 --- a/src/modules/rlm_client/rlm_client.c +++ b/src/modules/rlm_client/rlm_client.c @@ -45,14 +45,12 @@ static int _map_proc_client_get_vp(TALLOC_CTX *ctx, fr_pair_list_t *out, request client_get_vp_ctx_t *client = uctx; fr_pair_list_t head; fr_pair_t *vp; - fr_cursor_t cursor; fr_dict_attr_t const *da; CONF_PAIR const *cp; fr_assert(ctx != NULL); fr_pair_list_init(&head); - fr_cursor_init(&cursor, &head); /* * FIXME: allow multiple entries. @@ -93,7 +91,7 @@ static int _map_proc_client_get_vp(TALLOC_CTX *ctx, fr_pair_list_t *out, request } vp->op = map->op; - fr_cursor_append(&cursor, vp); + fr_pair_add(&head, vp); if (map->op != T_OP_ADD) break; /* Create multiple attribute for multiple CONF_PAIRs */ }