From: Martin Willi Date: Thu, 3 May 2012 09:08:09 +0000 (+0200) Subject: If we load new features from a plugin, restart loading from first plugin X-Git-Tag: 5.0.0~310 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40ca363a8b7e8cc0db9aad2d07cee35f651fa63c;p=thirdparty%2Fstrongswan.git If we load new features from a plugin, restart loading from first plugin --- 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;