Fixed "encode TLV" API.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 24 Mar 2011 14:25:42 +0000 (15:25 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 25 Mar 2011 09:12:48 +0000 (10:12 +0100)
commita45678ac7bd24176d89c5275eb3a50fceece42be
treeeeb359b9febf0134e96a1f527c7d21283cf25087
parent6468fa17314d2f75dd03ec64625bb578e532daf7
Fixed "encode TLV" API.

We need to track the START vp, and the NEXT vp.  Previously,
we were tracking the *current* VP and the next one, which didn't
work.  The issue was that if the TLV encoding recursed twice,
it would not back up twice, and instead encode the next level 1
TLV as part of the current one.

Also updated the location of "debug_pair", to put it into
vp2data_any, which is really where it should go.
src/lib/radius.c