aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/plugin_loader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c
index 006a1b750..a8f7a64fd 100644
--- a/src/libstrongswan/plugins/plugin_loader.c
+++ b/src/libstrongswan/plugins/plugin_loader.c
@@ -503,14 +503,14 @@ METHOD(plugin_loader_t, load_plugins, bool,
{
/* try load new features until we don't get new ones */
}
- while (load_features(this, FALSE, FALSE))
- {
- /* second round, ignoring soft dependencies */
- }
}
enumerator->destroy(enumerator);
if (!critical_failed)
{
+ while (load_features(this, FALSE, FALSE))
+ {
+ /* enforce loading features, ignoring soft dependencies */
+ }
/* report missing dependencies */
load_features(this, FALSE, TRUE);
/* unload plugins that we were not able to load any features for */