{
if (!fr_type_is_leaf(vp->vp_type)) return -1;
- if (vp->data.immutable) {
+ if (vp->vp_immutable) {
fr_strerror_printf("Cannot modify immutable value for %s", vp->da->name);
return -1;
}
*/
bool fr_pair_immutable(fr_pair_t const *vp)
{
- if (fr_type_is_leaf(vp->vp_type)) return vp->data.immutable;
+ if (fr_type_is_leaf(vp->vp_type)) return vp->vp_immutable;
fr_pair_list_foreach(&vp->vp_group, child) {
if (fr_type_is_leaf(child->vp_type)) {
- if (child->data.immutable) return true;
+ if (child->vp_immutable) return true;
continue;
}
#define vp_type data.type
#define vp_tainted data.tainted
+#define vp_immutable data.immutable
#define ATTRIBUTE_EQ(_x, _y) ((_x && _y) && (_x->da == _y->da))