]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
and again "shut the heck up"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 29 Aug 2023 00:53:17 +0000 (20:53 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 29 Aug 2023 00:53:17 +0000 (20:53 -0400)
src/lib/util/regex.c

index be1040cd49b39e2f56448ceaee10f5985073fd27..1c2adbbdcf770049f627bafefd7c03f14d3f46b6 100644 (file)
@@ -1398,6 +1398,13 @@ int fr_regex_cmp_op(fr_token_t op, fr_value_box_t const *a, fr_value_box_t const
                return -1;
        }
 
+#ifdef STATIC_ANALYZER
+       if (!regex) {
+               talloc_free(ctx);
+               return -1;
+       }
+#endif
+
        rcode = regex_exec(regex, lhs, lhs_len, NULL);
        talloc_free(ctx);
        if (rcode < 0) return rcode;