]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Replace cursor functions with pair_list functions in lib/eap/chbind.c
authorNick Porter <nick@portercomputing.co.uk>
Wed, 6 Jan 2021 10:29:45 +0000 (10:29 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Jan 2021 23:05:49 +0000 (23:05 +0000)
src/lib/eap/chbind.c

index f9a785f057c89230459453dbb76077b387f6ae2f..f51ed918b10b2057e26c4b5c0a72da448260ab5f 100644 (file)
@@ -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.
                 */