From: Alan T. DeKok Date: Sun, 19 Nov 2023 22:14:47 +0000 (-0500) Subject: return correct value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=770c10e1d6e48fb701531a26d30cf7112c68dd27;p=thirdparty%2Ffreeradius-server.git return correct value --- diff --git a/src/modules/rlm_unix/rlm_unix.c b/src/modules/rlm_unix/rlm_unix.c index 12a49cdbf6c..9dc4dbbdb3b 100644 --- a/src/modules/rlm_unix/rlm_unix.c +++ b/src/modules/rlm_unix/rlm_unix.c @@ -462,12 +462,12 @@ static unlang_action_t CC_HINT(nonnull) mod_accounting(rlm_rcode_t *p_result, mo delay = vp->vp_uint32; - if (t < delay) return RLM_MODULE_FAIL; + if (t < delay) RETURN_MODULE_FAIL; t -= delay; } } - if (t > UINT32_MAX) return RLM_MODULE_FAIL; + if (t > UINT32_MAX) RETURN_MODULE_FAIL; /* * We don't store !root sessions, or sessions