the decoder is still wrong, but at least we're not printing out
garbage
/*
* Groups are printed from the referenced attribute.
+ *
+ * @todo - parent should _never_ be vp->da.
*/
#define fr_pair_reset_parent(parent) do { \
if (parent && (parent->type == FR_TYPE_GROUP)) { \
parent = fr_dict_attr_ref(parent); \
if (parent->flags.is_root) parent = NULL; \
} \
+ if (parent && (parent == vp->da)) parent = NULL; \
} while (0)
/** Pair serialisation API
pair test-group = { child1 = 1 }
match test-group = { child1 = 1 }
-
encode-pair test-group = { child1 = 1 }
match 1a 9a 00 0c 1a 99 00 08 00 01 00 04 00 00 00 01
# @todo - fix it!
#
decode-pair -
-match test-group = { = { child1 = 1 } }
+match test-group = { test-tlv = { child1 = 1 } }
count
match 10