summaryrefslogtreecommitdiffstats
path: root/options/parse_configfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'options/parse_configfile.c')
-rw-r--r--options/parse_configfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/options/parse_configfile.c b/options/parse_configfile.c
index e7c877349d..0ef80082d4 100644
--- a/options/parse_configfile.c
+++ b/options/parse_configfile.c
@@ -150,7 +150,8 @@ int m_config_parse(m_config_t *config, const char *location, bstr data,
}
}
- m_config_finish_default_profile(config, flags);
+ if (config->recursion_depth == 0)
+ m_config_finish_default_profile(config, flags);
talloc_free(tmp);
return 1;