break;
}
+ VP_VERIFY(vp);
+
return vp;
}
}
fr_dict_attr_verify(file, line, vp->da);
- if (vp->data.enumv) fr_dict_attr_verify(file, line, vp->data.enumv);
+
/*
* Each pair should be in one state, either inserted
* into a list or not...
return;
}
+ /*
+ * Only perform this check when we're sure
+ * that this attribute isn't structural.
+ *
+ * If it's a structural type then the
+ * space used by the fr_value_box_t gets
+ * used by the pair list.
+ */
+ if (vp->data.enumv) fr_dict_attr_verify(file, line, vp->data.enumv);
+
if (vp->vp_ptr) switch (vp->vp_type) {
case FR_TYPE_OCTETS:
{