]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pacify Coverity (CID #1690427)
authorNick Porter <nick@portercomputing.co.uk>
Tue, 24 Mar 2026 08:44:12 +0000 (08:44 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 24 Mar 2026 08:44:52 +0000 (08:44 +0000)
src/lib/unlang/xlat_eval.c

index 40faab4ce60c01c5adfa59d8709fbe519905ff46..d9e8fec900494af9feb0c84490c609b1dac8c9a6 100644 (file)
@@ -452,6 +452,14 @@ static xlat_action_t xlat_process_arg_list(TALLOC_CTX *ctx, fr_value_box_list_t
        vb = fr_value_box_list_head(list);
        fr_assert(node->type == XLAT_GROUP);
 
+       /*
+        *      Coverity doesn't understand that the previous check for an empty list
+        *      means that fr_value_box_list_head() will return a box.
+        */
+#ifdef __COVERITY__
+       if (!vb) return XLAT_ACTION_DONE;
+#endif
+
        /*
         *      Concatenate child boxes, then cast to the desired type.
         */