From: Alan T. DeKok Date: Wed, 9 Feb 2022 16:47:57 +0000 (-0500) Subject: it helps to set "success" so that we actually succeed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3a3a659c5662b901960093b25f1bc697967d8cc;p=thirdparty%2Ffreeradius-server.git it helps to set "success" so that we actually succeed --- diff --git a/src/lib/unlang/xlat.c b/src/lib/unlang/xlat.c index b4400f7794c..413ff35d5bb 100644 --- a/src/lib/unlang/xlat.c +++ b/src/lib/unlang/xlat.c @@ -411,6 +411,7 @@ static unlang_action_t unlang_xlat_resume(rlm_rcode_t *p_result, request_t *requ return UNLANG_ACTION_YIELD; case XLAT_ACTION_DONE: + if (state->success) *state->success = true; *p_result = RLM_MODULE_OK; return UNLANG_ACTION_CALCULATE_RESULT; @@ -423,6 +424,7 @@ static unlang_action_t unlang_xlat_resume(rlm_rcode_t *p_result, request_t *requ FALL_THROUGH; case XLAT_ACTION_FAIL: + if (state->success) *state->success = false; *p_result = RLM_MODULE_FAIL; return UNLANG_ACTION_CALCULATE_RESULT; /* DON'T SET DEFAULT */