]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
it helps to set "success" so that we actually succeed
authorAlan T. DeKok <aland@freeradius.org>
Wed, 9 Feb 2022 16:47:57 +0000 (11:47 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 9 Feb 2022 16:47:57 +0000 (11:47 -0500)
src/lib/unlang/xlat.c

index b4400f7794c21c1a96a415bc15163f10ba51ae62..413ff35d5bb6f47086e3f72bb98357679c282d2c 100644 (file)
@@ -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 */