]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
call cf_section_has_parent
authorAlan T. DeKok <aland@freeradius.org>
Sat, 20 Feb 2021 17:58:01 +0000 (12:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 20 Feb 2021 17:58:01 +0000 (12:58 -0500)
src/lib/server/cf_file.c

index 3a12acf49ecbb21c5f4600c31e544093092d2778..944d6311e269c54ebef232f6129434e36cff30a3 100644 (file)
@@ -139,7 +139,7 @@ typedef struct {
 
 static inline CC_HINT(always_inline) int cf_tmpl_rules_verify(CONF_SECTION *cs, tmpl_rules_t const *rules)
 {
-       if (cf_section_find_in_parent(cs, "policy", NULL)) {
+       if (cf_section_has_parent(cs, "policy", NULL)) {
                if (!fr_cond_assert_msg(!rules->dict_def || (rules->dict_def == fr_dict_internal()),
                                        "Protocol dictionary must be NULL not %s",
                                        fr_dict_root(rules->dict_def)->name)) return -1;