]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return code is signed
authorAlan T. DeKok <aland@freeradius.org>
Fri, 6 Sep 2024 14:17:12 +0000 (10:17 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 6 Sep 2024 14:17:12 +0000 (10:17 -0400)
src/lib/unlang/compile.c

index c3f6c0306a6cb9d26bf7582be15fcab1b4033713..5bd559f077c75928de4b37fdf2281fb0a3146057 100644 (file)
@@ -4006,7 +4006,7 @@ static unlang_t *compile_subrequest(unlang_t *parent, unlang_compile_t *unlang_c
         */
        if ((name2[0] == '&') ||
            (tmpl_require_enum_prefix && ((p = strchr(name2, ':')) == NULL))) {
-               size_t slen;
+               ssize_t slen;
 
                slen = tmpl_afrom_attr_substr(parent, NULL, &vpt,
                                              &FR_SBUFF_IN(name2, talloc_array_length(name2) - 1),
@@ -4016,6 +4016,8 @@ static unlang_t *compile_subrequest(unlang_t *parent, unlang_compile_t *unlang_c
                        return NULL;
                }
 
+               fr_assert(tmpl_is_attr(vpt));
+
                /*
                 *      Anything resembling an integer or string is
                 *      OK.  Nothing else makes sense.