]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
skip the thing we just encoded
authorAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 20:08:53 +0000 (16:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 20:08:53 +0000 (16:08 -0400)
src/protocols/radius/encode.c

index 2cfa6f4f252a91c60a8d53379391d3650b450fc9..1998c9ee1172ab93b2432b181c20f5ebb081e6b6 100644 (file)
@@ -271,7 +271,7 @@ static ssize_t encode_tlv_hdr_internal(fr_dbuff_t *dbuff,
                        slen = encode_tlv_hdr_internal(&FR_DBUFF_MAX(&work_dbuff, 253), da_stack, depth, &child_cursor, encode_ctx);
                        if (slen <= 0) return slen;
 
-                       vp = fr_dcursor_current(cursor);
+                       vp = fr_dcursor_next(cursor);
                        fr_proto_da_stack_build(da_stack, vp ? vp->da : NULL);
 
                } else if (da_stack->da[depth + 1]->type == FR_TYPE_TLV) {