From: Nick Porter Date: Wed, 6 Jan 2021 18:02:46 +0000 (+0000) Subject: Replace cursor functions with pair_list functions in proto_tacacs.c X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f0c28f09d4b4183f6ab2ef9bd188b5a360fb229;p=thirdparty%2Ffreeradius-server.git Replace cursor functions with pair_list functions in proto_tacacs.c --- diff --git a/src/modules/proto_tacacs/proto_tacacs.c b/src/modules/proto_tacacs/proto_tacacs.c index 91763118e56..1658497209a 100644 --- a/src/modules/proto_tacacs/proto_tacacs.c +++ b/src/modules/proto_tacacs/proto_tacacs.c @@ -250,9 +250,9 @@ static int mod_decode(void const *instance, request_t *request, uint8_t *const d fr_assert(client->dynamic); - for (vp = fr_cursor_init(&cursor, &request->request_pairs); + for (vp = fr_pair_list_head(&request->request_pairs); vp != NULL; - vp = fr_cursor_next(&cursor)) { + vp = fr_pair_list_next(&request->request_pairs, vp)) { if (!vp->da->flags.subtype) { switch (vp->da->type) { default: