{
map_t const *map = current->map;
- if (current->rhs.result.rcode == RLM_MODULE_FAIL) {
+ if (!XLAT_RESULT_SUCCESS(¤t->rhs.result)) {
if (map->rhs) {
RDEBUG("Failed expanding ... %s", map->rhs->name);
} else {
tmpl_dcursor_ctx_t cc;
fr_dcursor_t cursor;
- if (current->lhs.result.rcode == RLM_MODULE_FAIL) {
+ if (!XLAT_RESULT_SUCCESS(¤t->lhs.result)) {
RDEBUG("Failed expanding %s ...", map->lhs->name);
return -1;
}
XDEBUG("MAP %s ... %s", state->current->map->lhs->name, state->current->map->rhs->name);
}
- state->current->lhs.result.rcode = state->current->rhs.result.rcode = RLM_MODULE_OK;
+ state->current->lhs.result = state->current->rhs.result = UNLANG_RESULT_RCODE(RLM_MODULE_OK);
rcode = state->current->func(request, state, state->current);
if (rcode < 0) {