vp = fr_pair_afrom_da(ctx, map->lhs->tmpl_da);
if (!vp) return -1;
+
vp->op = map->op;
vp->tag = map->lhs->tmpl_tag;
+'
if (fr_pair_value_from_str(vp, answer, -1) < 0) {
fr_pair_list_free(&vp);
return -2;
vp = fr_pair_afrom_da(ctx, map->lhs->tmpl_da);
rad_assert(vp);
+ vp->op = map->op;
+ vp->tag = map->lhs->tmpl_tag;
+
if (fr_pair_value_from_str(vp, self->values[i]->bv_val, self->values[i]->bv_len) < 0) {
char *escaped;
continue;
}
- vp->op = map->op;
fr_cursor_insert(&cursor, vp);
/*
}
vp->op = op;
-
- /*
- * @todo - use tmpl_cast_to_vp() instead ???
- */
- if (vp->da->flags.has_tag) vp->tag = dst.tmpl_tag;
+ vp->tag = dst.tmpl_tag;
if (fr_pair_value_from_str(vp, s2, -1) < 0) {
DEBUG("%s - Failed: '%s:%s' %s '%s'", funcname, list_name, s1,
}
vp->op = op;
-
- /*
- * @todo - use tmpl_cast_to_vp() instead ???
- */
- if (vp->da->flags.has_tag) vp->tag = dst.tmpl_tag;
+ vp->tag = dst.tmpl_tag;
if (fr_pair_value_from_str(vp, s2, -1) < 0) {
DEBUG("%s - Failed: '%s:%s' %s '%s'", funcname, list_name, s1,
vp = fr_pair_afrom_da(ctx, map->lhs->tmpl_da);
rad_assert(vp);
+ vp->op = map->op;
+ vp->tag = map->lhs->tmpl_tag;
+
if (fr_pair_value_from_str(vp, value, -1) < 0) {
char *escaped;
break;
}
- vp->op = map->op;
fr_cursor_insert(&cursor, vp);
break;