]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
one more attempt to shut up clang
authorAlan T. DeKok <aland@freeradius.org>
Thu, 20 Jan 2022 15:48:07 +0000 (10:48 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 20 Jan 2022 15:48:07 +0000 (10:48 -0500)
src/lib/unlang/xlat_expr.c

index e661c9df7fbe9fb196734c0e68f79f81c14151d4..b53ea178482c80ea8e2ee230ca831a758f172448 100644 (file)
@@ -1132,6 +1132,14 @@ redo:
                talloc_free(lhs);
                FR_SBUFF_ERROR_RETURN_ADJ(&in, slen);
        }
+
+#ifdef __clang_analyzer__
+       if (!rhs) {
+               talloc_free(lhs);
+               FR_SBUFF_ERROR_RETURN(&in);
+       }
+#endif
+
        fr_assert(rhs != NULL);
 
 //alloc_func: