return 0;
}
-static ssize_t cond_tokenize_operand(TALLOC_CTX *ctx, tmpl_t **out,
+static ssize_t cond_tokenize_operand(fr_cond_t *c, tmpl_t **out,
fr_sbuff_marker_t *opd_start, fr_sbuff_t *in,
tmpl_rules_t const *rules)
{
#endif
}
- slen = tmpl_afrom_substr(ctx, &vpt, &our_in, type, p_rules, rules);
+ slen = tmpl_afrom_substr(c, &vpt, &our_in, type, p_rules, rules);
if (!vpt) {
fr_sbuff_advance(&our_in, slen * -1);
goto error;
}
+ if (tmpl_is_attr_unresolved(vpt)) c->pass2_fixup = PASS2_FIXUP_ATTR;
+
*out = vpt;
fr_sbuff_marker(opd_start, in);
fr_sbuff_advance(&our_in, slen * -1);
goto error;
}
- if (tmpl_is_attr_unresolved(lhs)) c->pass2_fixup = PASS2_FIXUP_ATTR;
#ifdef HAVE_REGEX
/*
fr_sbuff_advance(&our_in, slen * -1);
goto error;
}
- if (tmpl_is_attr_unresolved(rhs)) c->pass2_fixup = PASS2_FIXUP_ATTR;
/*
* Groups can't be on the RHS of a comparison, either