]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
s/fr_cursor/fr_dcursor/ in rlm_ldap/groups.c
authorNick Porter <nick@portercomputing.co.uk>
Fri, 8 Jan 2021 17:25:42 +0000 (17:25 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Jan 2021 23:05:49 +0000 (23:05 +0000)
src/modules/rlm_ldap/groups.c

index 561ec388487924b0386495129849129b1f04d444..b73f0992719c4533c2ddd135aa8f9eace1852d3d 100644 (file)
@@ -835,18 +835,18 @@ unlang_action_t rlm_ldap_check_cached(rlm_rcode_t *p_result,
 {
        fr_pair_t       *vp;
        int             ret;
-       fr_cursor_t     cursor;
+       fr_dcursor_t    cursor;
 
        /*
         *      We return RLM_MODULE_INVALID here as an indication
         *      the caller should try a dynamic group lookup instead.
         */
-       vp =  fr_cursor_iter_by_da_init(&cursor, &request->control_pairs, inst->cache_da);
+       vp =  fr_dcursor_iter_by_da_init(&cursor, &request->control_pairs, inst->cache_da);
        if (!vp) RETURN_MODULE_INVALID;
 
-       for (vp = fr_cursor_current(&cursor);
+       for (vp = fr_dcursor_current(&cursor);
             vp;
-            vp = fr_cursor_next(&cursor)) {
+            vp = fr_dcursor_next(&cursor)) {
                ret = fr_pair_cmp_op(T_OP_CMP_EQ, vp, check);
                if (ret == 1) {
                        RDEBUG2("User found. Matched cached membership");