From 40ca363a8b7e8cc0db9aad2d07cee35f651fa63c Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 3 May 2012 11:08:09 +0200 Subject: [PATCH] If we load new features from a plugin, restart loading from first plugin --- src/libstrongswan/plugins/plugin_loader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index 94ef00b2e2..c1a929bd61 100644 --- a/src/libstrongswan/plugins/plugin_loader.c +++ b/src/libstrongswan/plugins/plugin_loader.c @@ -429,6 +429,10 @@ static int load_features(private_plugin_loader_t *this, bool soft, bool report) } feature++; } + if (loaded && !report) + { /* got new feature, restart from beginning of list */ + break; + } } enumerator->destroy(enumerator); return loaded; -- 2.47.3