If we load new features from a plugin, restart loading from first plugin
authorMartin Willi <martin@revosec.ch>
Thu, 3 May 2012 09:08:09 +0000 (11:08 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 3 May 2012 09:08:09 +0000 (11:08 +0200)
src/libstrongswan/plugins/plugin_loader.c

index 94ef00b..c1a929b 100644 (file)
@@ -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;