]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
typos
authorAlan T. DeKok <aland@freeradius.org>
Fri, 3 Jun 2022 00:09:35 +0000 (20:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 3 Jun 2022 11:16:03 +0000 (07:16 -0400)
src/lib/unlang/xlat_expr.c

index 9a5b1a473fa894ccd06f1e0744d5961d163dae78..40ae38fd0d67633d1a07c632268b5baa855f220e 100644 (file)
@@ -468,8 +468,8 @@ static xlat_action_t xlat_regex_match(TALLOC_CTX *ctx, request_t *request, fr_va
        fr_regmatch_t   *regmatch;
        fr_value_box_t  *dst;
 
-       if (!fr_cond_assert(subject != NULL)) return -1;
-       if (!fr_cond_assert(subject->type == FR_TYPE_STRING)) return -1;
+       if (!fr_cond_assert(subject != NULL)) return XLAT_ACTION_FAIL;
+       if (!fr_cond_assert(subject->type == FR_TYPE_STRING)) return XLAT_ACTION_FAIL;
 
        subcaptures = regex_subcapture_count(*preg);
        if (!subcaptures) subcaptures = REQUEST_MAX_REGEX + 1;  /* +1 for %{0} (whole match) capture group */
@@ -2135,6 +2135,15 @@ redo:
                }
        }
 
+       /*
+        *      Convert a bare
+        *
+        *              handled
+        *
+        *      to
+        *
+        *              %{rcode:handled}
+        */
        if (logical_ops[op]) {
                if (reparse_rcode(head, &lhs) < 0) {
                        fr_sbuff_set(&our_in, &m_lhs);