]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up clang scan
authorAlan T. DeKok <aland@freeradius.org>
Thu, 12 Aug 2021 15:38:57 +0000 (11:38 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 12 Aug 2021 15:38:57 +0000 (11:38 -0400)
src/lib/util/dict_util.c

index f0df844ffe3db36168cdcd796cea9d9fec38aa86..e38fc4e34e1857fb10c613454ff2fe92adfcf94e 100644 (file)
@@ -2243,6 +2243,8 @@ ssize_t dict_attr_search(fr_dict_attr_err_t *err, fr_dict_attr_t const **out,
         *      Next in the internal dictionary
         */
        if (internal) {
+               if (!dict_gctx->internal) goto error;
+
                slen = func(&our_err, out, fr_dict_root(dict_gctx->internal), &our_in, tt);
                switch (our_err) {
                case FR_DICT_ATTR_OK: