settings: Clarify that a key/value-pair can only occur once
authorTobias Brunner <tobias@strongswan.org>
Mon, 17 Sep 2018 15:58:09 +0000 (17:58 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 17 Sep 2018 16:51:43 +0000 (18:51 +0200)
src/libstrongswan/settings/settings.c

index dfa8651..44d035f 100644 (file)
@@ -462,6 +462,7 @@ static void remove_value_buffered(private_settings_t *this, section_t *section,
                                {
                                        array_remove(section->kv_order, i, NULL);
                                        settings_kv_destroy(kv, this->contents);
+                                       break;
                                }
                        }
                }