if (fr_pair_list_empty(¤t->rhs.pair_list)) return 0;
- if (RDEBUG_ENABLED2) {
- for (vp = fr_pair_list_head(¤t->rhs.pair_list);
- vp != NULL;
- vp = fr_pair_list_next(¤t->rhs.pair_list, vp)) {
- RDEBUG2("%s %s %pV", current->lhs.vpt->name, fr_tokens[map->op], &vp->data);
- }
+ for (vp = fr_pair_list_head(¤t->rhs.pair_list);
+ vp != NULL;
+ vp = fr_pair_list_next(¤t->rhs.pair_list, vp)) {
+ (void) talloc_steal(current->lhs.vp_parent, vp);
+
+ RDEBUG2("%s %s %pV", current->lhs.vpt->name, fr_tokens[map->op], &vp->data);
}
if (fr_edit_list_insert_list_tail(current->el, ¤t->lhs.vp_parent->vp_group,
fr_assert(current->parent);
fr_assert(current->parent->lhs.vp_parent != NULL);
- MEM(vp = fr_pair_afrom_da(current->parent->lhs.vp_parent, current->parent->lhs.vp->da));
+ MEM(vp = fr_pair_afrom_da(current, current->parent->lhs.vp->da));
/*
* @todo - handle lists from xlats?