From: Arran Cudbard-Bell Date: Tue, 10 Sep 2019 23:43:34 +0000 (-0500) Subject: Quiet clang scan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=659bc2aedf14a3dffb908769fb588cfa8f7e429d;p=thirdparty%2Ffreeradius-server.git Quiet clang scan --- diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index eded7ad6d14..c23f4bfda9a 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -1050,7 +1050,12 @@ static CONF_SECTION *process_if(CONF_SECTION *this, char const **ptr_p, char *bu if (invalid_location(this, buff[1], filename, lineno)) return NULL; cd = cf_data_find_in_parent(this, fr_dict_t **, "dictionary"); - if (cd) dict = *((fr_dict_t **)cf_data_value(cd)); + if (!cd) { + cf_log_err(cf_section_find_in_parent(this, "server", CF_IDENT_ANY), + "No dictionary data found in virtual server"); + return NULL; + } + dict = *((fr_dict_t **)cf_data_value(cd)); /* * fr_cond_tokenize needs the current section, so we create it first.