diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-06-30 15:23:22 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-07-01 17:58:36 +0200 |
commit | 1be2b84124c950ce59feea8f1d3b3bc377818d0e (patch) | |
tree | 0e065bd15934e09218fe658ab9a8f33ac832b4f8 /src | |
parent | 6fb12832420ad7f2c4a999f356e336bb7a6be9f6 (diff) | |
download | strongswan-1be2b84124c950ce59feea8f1d3b3bc377818d0e.tar.bz2 strongswan-1be2b84124c950ce59feea8f1d3b3bc377818d0e.tar.xz |
parser-helper: Ensure file_next() does not remove the sentinel item
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils/parser_helper.c | 2 |
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); |