diff options
author | Martin Willi <martin@revosec.ch> | 2012-05-03 11:08:09 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-05-03 11:08:09 +0200 |
commit | 40ca363a8b7e8cc0db9aad2d07cee35f651fa63c (patch) | |
tree | d40ec38907c2db10dc779c12a806194fd0d8f79c /src/libstrongswan | |
parent | c9931135d1c7ddf53c546e04b4bd54d228b3c2f8 (diff) | |
download | strongswan-40ca363a8b7e8cc0db9aad2d07cee35f651fa63c.tar.bz2 strongswan-40ca363a8b7e8cc0db9aad2d07cee35f651fa63c.tar.xz |
If we load new features from a plugin, restart loading from first plugin
Diffstat (limited to 'src/libstrongswan')
-rw-r--r-- | src/libstrongswan/plugins/plugin_loader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index 94ef00b2e..c1a929bd6 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; |