]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
quiet coverity. CID #1642987
authorAlan T. DeKok <aland@freeradius.org>
Tue, 18 Feb 2025 00:29:26 +0000 (19:29 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 18 Feb 2025 00:29:26 +0000 (19:29 -0500)
src/lib/util/dict_tokenize.c

index f7b1f3e90c27a9adce0eb350a4719213035cebdd..e261f5668fb786b1f730620483bd061c1d1cf318 100644 (file)
@@ -1240,6 +1240,10 @@ static int dict_read_process_attribute(dict_tokenize_ctx_t *dctx, char **argv, i
                return -1;
        }
 
+#ifdef STATIC_ANALYZER
+       if (!dctx->dict) return -1;
+#endif
+
        /*
         *      A non-relative ATTRIBUTE definition means that it is
         *      in the context of the previous BEGIN-FOO.  So we
@@ -1338,10 +1342,6 @@ static int dict_read_process_attribute(dict_tokenize_ctx_t *dctx, char **argv, i
        }
 #endif
 
-#ifdef STATIC_ANALYZER
-       if (!dctx->dict) return -1;
-#endif
-
        /*
         *      Set the attribute name
         */