goto error;
}
+ if ((map->lhs->tmpl_tag == TAG_VALUE) &&
+ ((map->op == T_OP_CMP_FALSE) || (map->op == T_OP_CMP_TRUE) || (map->op == T_OP_SUB))) {
+ cf_log_err_cp(cp, "Cannot use ':V' for this operator");
+ goto error;
+ }
break;
}
}
if (map->rhs->type == TMPL_TYPE_ATTR) {
+ if (map->rhs->tmpl_tag == TAG_VALUE) {
+ cf_log_err_cp(cp, "Cannot use ':V' for tags here.");
+ goto error;
+ }
+
/*
* We cannot assign a count to an attribute. That must
* be done in an xlat.
/*
* Another fixup pass to set tags on attributes were about to insert
*/
- if (map->lhs->tmpl_tag != TAG_ANY) {
+ if (TAG_VALID(map->lhs->tmpl_tag)) {
for (vp = fr_cursor_init(&src_list, &head);
vp;
vp = fr_cursor_next(&src_list)) {