From: Alan T. DeKok Date: Tue, 29 Aug 2023 00:53:17 +0000 (-0400) Subject: and again "shut the heck up" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b7f5ecf01fb96b70efce1e494d52074ba5a69e3;p=thirdparty%2Ffreeradius-server.git and again "shut the heck up" --- diff --git a/src/lib/util/regex.c b/src/lib/util/regex.c index be1040cd49b..1c2adbbdcf7 100644 --- a/src/lib/util/regex.c +++ b/src/lib/util/regex.c @@ -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;