Skip to content

Commit

Permalink
Use consistent return values
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Sep 1, 2023
1 parent 8c30340 commit fa7ba73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/unlang/call_env.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ 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) {
if (!env->rule->pair.nullable) {
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;
}

/*
Expand Down

0 comments on commit fa7ba73

Please sign in to comment.