]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use consistent return values
authorNick Porter <nick@portercomputing.co.uk>
Fri, 1 Sep 2023 07:30:13 +0000 (08:30 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 1 Sep 2023 09:41:35 +0000 (10:41 +0100)
src/lib/unlang/call_env.c

index b5e4eff987b20738e6049215a75e60efeb39711e..e304bc5328227a81f3d4cb314331e29dc3284b5d 100644 (file)
@@ -204,7 +204,7 @@ call_env_result_t call_env_value_parse(TALLOC_CTX *ctx, request_t *request, void
        fr_value_box_t  *vb;
 
        if (tmpl_out) *tmpl_out = env->tmpl;
-       if (env->tmpl_only) return 0;
+       if (env->tmpl_only) return CALL_ENV_SUCCESS;
 
        vb = fr_value_box_list_head(tmpl_expanded);
        if (!vb) {
@@ -212,7 +212,7 @@ call_env_result_t call_env_value_parse(TALLOC_CTX *ctx, request_t *request, void
                        RPEDEBUG("Failed to evaluate required module option %s = %s", env->rule->name, env->tmpl->name);
                        return CALL_ENV_MISSING;
                }
-               return 0;
+               return CALL_ENV_SUCCESS;
        }
 
        /*