]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
wind the cursor to the tail of the list
authorAlan T. DeKok <aland@freeradius.org>
Tue, 5 Jun 2018 17:32:22 +0000 (13:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 5 Jun 2018 17:33:06 +0000 (13:33 -0400)
src/lib/util/pair.c

index c39a5584428f4ee64cc54a8e0454c6b48067187c..6a323bc15fc79b7bbde1a41404749b73709e9fb0 100644 (file)
@@ -1687,6 +1687,7 @@ int fr_pair_list_afrom_file(TALLOC_CTX *ctx, VALUE_PAIR **out, FILE *fp, bool *p
 
                fr_cursor_init(&to_append, &vp);
                fr_cursor_merge(&cursor, &to_append);
+               (void) fr_cursor_tail(&cursor);
 
                buf[0] = '\0';
        }