]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
go to next here, too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 20:17:30 +0000 (16:17 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 20:17:30 +0000 (16:17 -0400)
src/protocols/radius/encode.c

index 1998c9ee1172ab93b2432b181c20f5ebb081e6b6..da19f6523524071239300cbcacfe2e43c9195533 100644 (file)
@@ -1320,7 +1320,7 @@ static ssize_t encode_vsa_hdr(fr_dbuff_t *dbuff,
        /*
         *      Fix up the da stack, and return the data we've encoded.
         */
-       vp = fr_dcursor_current(cursor);
+       vp = fr_dcursor_next(cursor);
        fr_proto_da_stack_build(da_stack, vp ? vp->da : NULL);
 
        FR_PROTO_HEX_DUMP(fr_dbuff_start(&work_dbuff), 6, "header vsa");