starter: Ingore %default conn and ca sections

This commit is contained in:
Tobias Brunner
2014-06-26 12:23:05 +02:00
parent d96328fbc4
commit 04ff5e58e3
2 changed files with 60 additions and 0 deletions
+12
View File
@@ -292,12 +292,20 @@ static dictionary_t *section_dictionary_create(private_conf_parser_t *parser,
static bool conn_filter(void *unused, section_t **section, char **name)
{
if (streq((*section)->name, "%default"))
{
return FALSE;
}
*name = (*section)->name;
return TRUE;
}
static bool ca_filter(void *unused, void *key, char **name, section_t **section)
{
if (streq((*section)->name, "%default"))
{
return FALSE;
}
*name = (*section)->name;
return TRUE;
}
@@ -326,6 +334,10 @@ METHOD(conf_parser_t, get_section, dictionary_t*,
{
section_t *section = NULL;
if (name && streq(name, "%default"))
{
return NULL;
}
switch (type)
{
case CONF_PARSER_CONFIG_SETUP: