diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-10-25 10:46:36 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-02-07 11:00:31 +0100 |
commit | d6c6fb13326695f4059ce479d9b89931f67a130f (patch) | |
tree | 692d8812fe8be5515791990cddd0233a190f1801 | |
parent | 865fd804ee58f448fa5d766e6e0a36917768fdec (diff) | |
download | strongswan-d6c6fb13326695f4059ce479d9b89931f67a130f.tar.bz2 strongswan-d6c6fb13326695f4059ce479d9b89931f67a130f.tar.xz |
settings: Fix purge if order differs from alphabetical order
-rw-r--r-- | src/libstrongswan/settings/settings_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/settings/settings_types.c b/src/libstrongswan/settings/settings_types.c index 125676237..d753720f5 100644 --- a/src/libstrongswan/settings/settings_types.c +++ b/src/libstrongswan/settings/settings_types.c @@ -177,7 +177,7 @@ static bool section_purge(section_t *this, array_t *contents) * having any such subsections) are not removed */ for (i = array_count(this->sections_order) - 1; i >= 0; i--) { - array_get(this->sections, i, ¤t); + array_get(this->sections_order, i, ¤t); if (section_purge(current, contents)) { array_remove(this->sections_order, i, NULL); |