From: Alan T. DeKok Date: Sun, 10 Jul 2022 19:35:36 +0000 (-0400) Subject: shut up clang scan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b856f9e22550c7091da00e9424f00c6ce9dc9859;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 32e50db6eaf..6f43caf42f0 100644 --- a/src/lib/util/dict_util.c +++ b/src/lib/util/dict_util.c @@ -3234,6 +3234,10 @@ static int _dict_free(fr_dict_t *dict) } } +#ifdef __clang_analyzer__ + if (!dict->root) return -1; +#endif + if (!fr_cond_assert(!dict->in_protocol_by_name || fr_hash_table_delete(dict->gctx->protocol_by_name, dict))) { fr_strerror_printf("Failed removing dictionary from protocol hash \"%s\"", dict->root->name); return -1;