} else {
fr_dict_attr_t const *da;
+ if (!vpt->tmpl_da->flags.has_tag &&
+ (vpt->tmpl_tag != TAG_ANY)) {
+ FR_FAULT_LOG("CONSISTENCY CHECK FAILED %s[%u]: TMPL_TYPE_ATTR "
+ "da is marked as not having a tag, but the template has a tag",
+ file, line);
+ if (!fr_cond_assert(0)) fr_exit_now(1);
+ }
+
+ if (vpt->tmpl_da->flags.has_tag &&
+ (vpt->tmpl_tag == TAG_ANY)) {
+ FR_FAULT_LOG("CONSISTENCY CHECK FAILED %s[%u]: TMPL_TYPE_ATTR "
+ "da is marked as having a tag, but the template has no tag",
+ file, line);
+ if (!fr_cond_assert(0)) fr_exit_now(1);
+ }
+
/*
* Attribute may be present with multiple names
*/