]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
s/fr_cursor/fr_dcursor/ in proto_tacacs/proto/tacacs_auth.c
authorNick Porter <nick@portercomputing.co.uk>
Wed, 6 Jan 2021 18:03:48 +0000 (18:03 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Jan 2021 23:05:49 +0000 (23:05 +0000)
src/modules/proto_tacacs/proto_tacacs_auth.c

index e472d3fe01d79f9444e43404ee624a5abe816123..2e70f1138483b5b5001f56fc0510ebb6b6fb7a01 100644 (file)
@@ -152,7 +152,7 @@ static unlang_action_t mod_process(rlm_rcode_t *p_result, module_ctx_t const *mc
        rlm_rcode_t                     rcode;
        CONF_SECTION                    *unlang;
        fr_dict_enum_t const            *dv = NULL;
-       fr_cursor_t                     cursor;
+       fr_dcursor_t                    cursor;
        fr_tacacs_auth_request_ctx_t const *auth_ctx;
        fr_tacacs_packet_hdr_t const    *pkt = (fr_tacacs_packet_hdr_t const *) request->packet->data;
 
@@ -244,9 +244,9 @@ static unlang_action_t mod_process(rlm_rcode_t *p_result, module_ctx_t const *mc
                 *      Find Authentication-Type, and complain if they have too many.
                 */
                auth_type = NULL;
-               for (vp = fr_cursor_iter_by_da_init(&cursor, &request->control_pairs, attr_auth_type);
+               for (vp = fr_dcursor_iter_by_da_init(&cursor, &request->control_pairs, attr_auth_type);
                     vp;
-                    vp = fr_cursor_next(&cursor)) {
+                    vp = fr_dcursor_next(&cursor)) {
                        if (!auth_type) {
                                auth_type = vp;
                                continue;