First, we need to update the bounds for the group property allocated
with the children property, just in case it's at the end of the
allocations.
Second, we need to allow the tal_check() code to accept the pointer to
the null parent's group property.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
init_group_property(&prop->group, prop, child);
list_head_init(&prop->group.list);
init_group_property(&prop->group, prop, child);
list_head_init(&prop->group.list);
+ update_bounds(&prop->group);
name = (struct name *)p;
break;
}
name = (struct name *)p;
break;
}
- if (p != &null_parent.c.hdr && !in_bounds(p))
+ if (p != &null_parent.c.hdr && p != &null_parent.c.group.hdr
+ && !in_bounds(p))
return check_err(t, errorstr,
"has bad property pointer");
return check_err(t, errorstr,
"has bad property pointer");