*/
switch (map->op) {
case T_OP_EQ:
- if (tmpl_find_vp(&vp, request, map->lhs) < 0) return -1;
+ if (tmpl_find_vp(&vp, request, map->lhs) < -1) return -1;
if (vp) return 0;
goto add;
* We're editing a specific number. It must exist, otherwise the edit does nothing.
*/
if ((num >= 0) || (num == NUM_LAST)) {
- if (tmpl_find_vp(&vp, request, map->lhs) < 0) return -1;
+ if (tmpl_find_vp(&vp, request, map->lhs) < -1) return -1;
if (!vp) return 0;
case T_OP_GE: /* replace if not >= */
if (fr_type_is_structural(da->type)) goto invalid_operator;
- if (tmpl_find_vp(&vp, request, map->lhs) < 0) return -1;
+ if (tmpl_find_vp(&vp, request, map->lhs) < -1) return -1;
if (!vp) goto add;
break;
return -1;
}
- if (tmpl_find_vp(&vp, request, map->lhs) < 0) return -1;
+ if (tmpl_find_vp(&vp, request, map->lhs) < -1) return -1;
if (!vp) return 0;
break;
*
* Note that
*
- * &foo = %tolower(&foo)
+ * &foo := %tolower(&foo)
*
* works, as we save the value above in the T_OP_SET handler. So we don't delete it.
*/