]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet clang scan
authorNick Porter <nick@portercomputing.co.uk>
Fri, 26 Aug 2022 12:51:35 +0000 (13:51 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 26 Aug 2022 12:51:35 +0000 (13:51 +0100)
src/lib/server/tmpl_eval.c

index 888a55ea5b8ad4d1aeaf5b9eb5a84b6bb4668da6..20fce154b926ab5863a8b1f638b3d0c606fc87bd 100644 (file)
@@ -1098,10 +1098,10 @@ int pair_append_by_tmpl_parent(TALLOC_CTX *ctx, fr_pair_t **out, fr_pair_list_t
         *      attributes and then allocating the leaf.
         */
        while (true) {
+               if (unlikely(!ar)) goto error;
                /*
                 *      We're not at the leaf, look for a potential parent
                 */
-               fr_assert(ar);
                if (ar != leaf) vp = fr_pair_find_by_da(list, NULL, ar->da);
 
                /*