From: Alan T. DeKok Date: Thu, 12 Aug 2021 15:38:57 +0000 (-0400) Subject: shut up clang scan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e2ae81410eea701a64fab058f0522939340e125;p=thirdparty%2Ffreeradius-server.git shut up clang scan --- diff --git a/src/lib/util/dict_util.c b/src/lib/util/dict_util.c index f0df844ffe3..e38fc4e34e1 100644 --- a/src/lib/util/dict_util.c +++ b/src/lib/util/dict_util.c @@ -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: