aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/utils/parser_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/parser_helper.c b/src/libstrongswan/utils/parser_helper.c
index 17307e92c..4c6aa251f 100644
--- a/src/libstrongswan/utils/parser_helper.c
+++ b/src/libstrongswan/utils/parser_helper.c
@@ -96,7 +96,7 @@ METHOD(parser_helper_t, file_next, FILE*,
char *name;
array_get(this->files, ARRAY_TAIL, &file);
- if (!file->matches)
+ if (!file->matches && file->name)
{
array_remove(this->files, ARRAY_TAIL, NULL);
parser_helper_file_destroy(file);