]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up static analyzer
authorAlan T. DeKok <aland@freeradius.org>
Wed, 20 Jul 2022 18:42:29 +0000 (14:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 Jul 2022 18:42:29 +0000 (14:42 -0400)
src/lib/unlang/edit.c

index 8fa393be1e5daecf8a9886b4d35d1bb87a49b37f..da88e941e5111e027cf6191f835b517d85228077 100644 (file)
@@ -767,7 +767,9 @@ redo:
 
                case UNLANG_EDIT_CHECK_RHS:
                check_rhs:
-                       fr_assert(current->lhs.vp != NULL);
+#ifdef STATIC_ANALYZER
+                       if (!current->lhs.vp) goto error;
+#endif
 
                        if (fr_type_is_leaf(current->lhs.vp->da->type)) {
                                if (apply_edits_to_leaf(request, current, map) < 0) goto error;