From: Tobias Brunner Date: Tue, 28 Jan 2014 15:36:50 +0000 (+0100) Subject: lib: Add default config fallback for configured namespace X-Git-Tag: 5.1.2rc1~7^2~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a684aece4998bf9469e2974b06cfe49a7845a7a;p=thirdparty%2Fstrongswan.git lib: Add default config fallback for configured namespace All settings in the configured global namespace fall back to libstrongswan. --- diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c index e0876ef9f5..c075fd8b4a 100644 --- a/src/libstrongswan/library.c +++ b/src/libstrongswan/library.c @@ -293,6 +293,9 @@ bool library_init(char *settings, const char *namespace) this->objects = hashtable_create((hashtable_hash_t)hash, (hashtable_equals_t)equals, 4); this->public.settings = settings_create(settings); + /* all namespace settings may fall back to libstrongswan */ + lib->settings->add_fallback(lib->settings, lib->ns, "libstrongswan"); + this->public.hosts = host_resolver_create(); this->public.proposal = proposal_keywords_create(); this->public.caps = capabilities_create();