From: Nick Porter Date: Wed, 6 Jan 2021 10:29:45 +0000 (+0000) Subject: Replace cursor functions with pair_list functions in lib/eap/chbind.c X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=261b3e4518a0c179a2469f939dbfc16d039ba8f4;p=thirdparty%2Ffreeradius-server.git Replace cursor functions with pair_list functions in lib/eap/chbind.c --- diff --git a/src/lib/eap/chbind.c b/src/lib/eap/chbind.c index f9a785f057c..f51ed918b10 100644 --- a/src/lib/eap/chbind.c +++ b/src/lib/eap/chbind.c @@ -41,9 +41,9 @@ static bool chbind_build_response(request_t *request, CHBIND_REQ *chbind) fr_cursor_t cursor; total = 0; - for (vp = fr_cursor_init(&cursor, &request->reply_pairs); + for (vp = fr_pair_list_head(&request->reply_pairs); vp != NULL; - vp = fr_cursor_next(&cursor)) { + vp = fr_pair_list_next(&request->reply_pairs, vp)) { /* * Skip things which shouldn't be in channel bindings. */