Non-group structural type attributes may always have a namespace
hash table, but coverity can't figure that out.
switch (da->type) {
case FR_TYPE_STRUCTURAL:
{
+ fr_hash_table_t *ht;
+
if (da->type == FR_TYPE_GROUP) break;
fr_assert_msg(fr_dict_attr_has_ext(da, FR_DICT_ATTR_EXT_CHILDREN),
/*
* Check the namespace hash table is ok
*/
- /* coverity[dereference] */
- fr_hash_table_verify(dict_attr_namespace(da));
+ ht = dict_attr_namespace(da);
+ if (unlikely(!ht)) break;
+ fr_hash_table_verify(ht);
}
break;