From: Alan T. DeKok Date: Sat, 3 Feb 2024 14:51:37 +0000 (-0500) Subject: dict may be NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a784b88612bc049c2f72b38508d80003ccf2e2b;p=thirdparty%2Ffreeradius-server.git dict may be NULL --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 360335c5079..babda41dedc 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -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; }