so not struct, not other groups, and not leaf types
and reorder checks so that they match the existing order in
dict_fixup.c
}
check:
+ talloc_free(ref);
+
+ if (da->type != FR_TYPE_TLV) {
+ fr_strerror_const("References MUST be to an ATTRIBUTE of type 'tlv'");
+ return -1;
+ }
+
if (fr_dict_attr_ref(da)) {
fr_strerror_const("References MUST NOT refer to an ATTRIBUTE which also has 'ref=...'");
- talloc_free(ref);
return -1;
}
- talloc_free(ref);
self->dict = dict;
dict_attr_ref_set(self, da);