Don't require STRONGSWAN_CONF to be defined.
This commit is contained in:
@@ -1117,14 +1117,21 @@ static bool load_files_internal(private_settings_t *this, section_t *parent,
|
|||||||
char *pattern, bool merge)
|
char *pattern, bool merge)
|
||||||
{
|
{
|
||||||
char *text;
|
char *text;
|
||||||
linked_list_t *contents = linked_list_create();
|
linked_list_t *contents;
|
||||||
section_t *section = section_create(NULL);
|
section_t *section;
|
||||||
|
|
||||||
if (pattern == NULL)
|
if (pattern == NULL)
|
||||||
{
|
{
|
||||||
|
#ifdef STRONGSWAN_CONF
|
||||||
pattern = STRONGSWAN_CONF;
|
pattern = STRONGSWAN_CONF;
|
||||||
|
#else
|
||||||
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contents = linked_list_create();
|
||||||
|
section = section_create(NULL);
|
||||||
|
|
||||||
if (!parse_files(contents, NULL, 0, pattern, section))
|
if (!parse_files(contents, NULL, 0, pattern, section))
|
||||||
{
|
{
|
||||||
contents->destroy_function(contents, (void*)free);
|
contents->destroy_function(contents, (void*)free);
|
||||||
|
|||||||
Reference in New Issue
Block a user