xlat_logical_rctx_t *rctx = talloc_get_type_abort(xctx->rctx, xlat_logical_rctx_t);
bool match;
+ /*
+ * If the expansions fails, then we fail the entire thing.
+ */
+ if (!XLAT_RESULT_SUCCESS(&rctx->last_result)) {
+ talloc_free(rctx->box);
+ talloc_free(rctx);
+ return XLAT_ACTION_FAIL;
+ }
+
/*
* Recursively check groups. i.e. we effectively flatten each list.
*
xlat_logical_rctx_t *rctx = talloc_get_type_abort(xctx->rctx, xlat_logical_rctx_t);
bool match;
+ /*
+ * If the expansions fails, then we fail the entire thing.
+ */
+ if (!XLAT_RESULT_SUCCESS(&rctx->last_result)) {
+ talloc_free(rctx->box);
+ talloc_free(rctx);
+ return XLAT_ACTION_FAIL;
+ }
+
/*
* Recursively check groups. i.e. we effectively flatten each list.
*