From: Alan T. DeKok Date: Thu, 26 Sep 2019 01:05:25 +0000 (-0400) Subject: set an rcode if we return "calculate_result" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=305a024dae96a4fbdcad2d7306306fd90652463e;p=thirdparty%2Ffreeradius-server.git set an rcode if we return "calculate_result" Otherwise how do we calculate results that don't have results? unlang keywords shouldn't be returning RLM_MODULE_UNKNOWN. --- diff --git a/src/lib/unlang/xlat.c b/src/lib/unlang/xlat.c index 7243d539e8a..e9ec1d318d1 100644 --- a/src/lib/unlang/xlat.c +++ b/src/lib/unlang/xlat.c @@ -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: