pair = true;
}
- if (!box && (map->op != T_OP_SET)) {
- RWDEBUG("%s %s ... - Assignment failed - No value on right-hand side", map->lhs->name, fr_tokens[map->op]);
- return -1;
+ if (!box) {
+ if (map->op != T_OP_SET) {
+ RWDEBUG("%s %s ... - Assignment failed - No value on right-hand side", map->lhs->name, fr_tokens[map->op]);
+ return -1;
+ }
+
+ /*
+ * Set is "delete, then add".
+ */
+ RDEBUG2("%s :=", current->lhs.vpt->name);
+ goto done;
}
/*
fr_dict_attr_t const *da = tmpl_attr_tail_da(current->lhs.vpt);
fr_pair_t *vp;
- if (!box) {
- RDEBUG2("%s %s ...", current->lhs.vpt->name, fr_tokens[map->op]);
- goto done;
- }
-
/*
* Something went wrong creating the value, it's a failure. Note that we fail _all_
* subsequent assignments, too.