]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dict may be NULL
authorAlan T. DeKok <aland@freeradius.org>
Sat, 3 Feb 2024 14:51:37 +0000 (09:51 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 3 Feb 2024 14:51:37 +0000 (09:51 -0500)
src/lib/util/dict_tokenize.c

index 360335c50799423ff095978bb26afb241c0009f9..babda41dedc5c87d18d6a75e23692589981becdb 100644 (file)
@@ -2952,7 +2952,7 @@ int fr_dict_protocol_afrom_file(fr_dict_t **out, char const *proto_name, char co
         */
        if (dict_from_file(dict_gctx->internal, dict_dir, FR_DICTIONARY_FILE, NULL, 0) < 0) {
        error:
-               dict->loading = false;
+               if (dict) dict->loading = false;
                talloc_free(dict_dir);
                return -1;
        }