]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
s/fr_cursor/fr_dcursor/ in tacacs/encode.c
authorNick Porter <nick@portercomputing.co.uk>
Sat, 9 Jan 2021 16:12:51 +0000 (16:12 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Jan 2021 23:05:49 +0000 (23:05 +0000)
src/protocols/tacacs/encode.c

index cda7158a90c32f2409341c817f3cb2b549bd1e10..07c60db757a54575aac4c2495e3290091ea69d53 100644 (file)
@@ -125,7 +125,7 @@ ssize_t fr_tacacs_encode(fr_dbuff_t *dbuff, uint8_t const *original_packet, char
 {
        fr_pair_t               *vp;
        fr_tacacs_packet_t      *packet;
-       fr_cursor_t             cursor;
+       fr_dcursor_t            cursor;
        fr_da_stack_t           da_stack;
        ssize_t                 len = 0;
        size_t                  body_len, packet_len;
@@ -194,9 +194,9 @@ ssize_t fr_tacacs_encode(fr_dbuff_t *dbuff, uint8_t const *original_packet, char
        /*
         *      Find the first attribute which is parented by TACACS-Packet.
         */
-       for (vp = fr_cursor_init(&cursor, vps);
+       for (vp = fr_dcursor_init(&cursor, vps);
             vp;
-            vp = fr_cursor_next(&cursor)) {
+            vp = fr_dcursor_next(&cursor)) {
                if (vp->da->parent == attr_tacacs_packet) break;
        }