]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set an rcode if we return "calculate_result"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 26 Sep 2019 01:05:25 +0000 (21:05 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 26 Sep 2019 01:51:02 +0000 (21:51 -0400)
Otherwise how do we calculate results that don't have results?

unlang keywords shouldn't be returning RLM_MODULE_UNKNOWN.

src/lib/unlang/xlat.c

index 7243d539e8aa4151d1191b4c42072cffca50449c..e9ec1d318d1556a80849c7892eb1610b05332ab0 100644 (file)
@@ -267,6 +267,7 @@ static unlang_action_t unlang_xlat(REQUEST *request,
                return UNLANG_ACTION_YIELD;
 
        case XLAT_ACTION_DONE:
+               *presult = RLM_MODULE_OK;
                return UNLANG_ACTION_CALCULATE_RESULT;
 
        case XLAT_ACTION_FAIL: