]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
scan fixes
authorAlan T. DeKok <aland@freeradius.org>
Mon, 13 May 2019 23:18:47 +0000 (19:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 13 May 2019 23:20:33 +0000 (19:20 -0400)
src/lib/util/dict.c

index 964a3e0e37bdc336020d64358ee552b9eb25c3e4..1b6809a87fb605f0960d4779dafebd01970bf1de 100644 (file)
@@ -4428,7 +4428,7 @@ static int dict_read_process_protocol(char **argv, int argc)
 
        } else if ((dict = fr_dict_by_protocol_num(value)) != NULL) {
 #ifdef __clang_analyzer__
-               if (!dict->root) return -1;
+               if (!dict->root || !dict->root->name) return -1;
 #endif
 
                if (strcasecmp(dict->root->name, argv[0]) != 0) {