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

index 6ff322ece979db3107ce23eb743ac4ecb2c833a8..bfcf4169c6ac359ca43e8ac2e4f2a5cbcb326fc2 100644 (file)
@@ -540,15 +540,15 @@ static unlang_action_t CC_HINT(nonnull) mod_passwd_map(rlm_rcode_t *p_result, mo
        char                    buffer[1024];
        fr_pair_t               *key, *i;
        struct mypasswd         *pw, *last_found;
-       fr_cursor_t             cursor;
+       fr_dcursor_t            cursor;
        int                     found = 0;
 
        key = fr_pair_find_by_da(&request->request_pairs, inst->keyattr);
        if (!key) RETURN_MODULE_NOTFOUND;
 
-       for (i = fr_cursor_iter_by_da_init(&cursor, &key, inst->keyattr);
+       for (i = fr_dcursor_iter_by_da_init(&cursor, &request->request_pairs, inst->keyattr);
             i;
-            i = fr_cursor_next(&cursor)) {
+            i = fr_dcursor_next(&cursor)) {
                /*
                 *      Ensure we have the string form of the attribute
                 */