aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-10-25 10:46:36 +0200
committerTobias Brunner <tobias@strongswan.org>2017-02-07 11:00:31 +0100
commitd6c6fb13326695f4059ce479d9b89931f67a130f (patch)
tree692d8812fe8be5515791990cddd0233a190f1801
parent865fd804ee58f448fa5d766e6e0a36917768fdec (diff)
downloadstrongswan-d6c6fb13326695f4059ce479d9b89931f67a130f.tar.bz2
strongswan-d6c6fb13326695f4059ce479d9b89931f67a130f.tar.xz
settings: Fix purge if order differs from alphabetical order
-rw-r--r--src/libstrongswan/settings/settings_types.c2
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, &current);
+ array_get(this->sections_order, i, &current);
if (section_purge(current, contents))
{
array_remove(this->sections_order, i, NULL);