diff options
author | Martin Willi <martin@revosec.ch> | 2011-10-13 16:09:38 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-10-14 10:05:49 +0200 |
commit | 59c4e88b16757114b97f151526d5f5ecf39b7236 (patch) | |
tree | d17876a76302559d786ed61ae041f04881f18f06 /src/libstrongswan/plugins/plugin_loader.c | |
parent | 9099e4fd3c1e4148b34915113c04dba816e5d696 (diff) | |
download | strongswan-59c4e88b16757114b97f151526d5f5ecf39b7236.tar.bz2 strongswan-59c4e88b16757114b97f151526d5f5ecf39b7236.tar.xz |
Reset registration function for each plugin during feature loading
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.c')
-rw-r--r-- | src/libstrongswan/plugins/plugin_loader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index 994e4df89..b97a5f3e6 100644 --- a/src/libstrongswan/plugins/plugin_loader.c +++ b/src/libstrongswan/plugins/plugin_loader.c @@ -331,7 +331,7 @@ static bool dependency_required(private_plugin_loader_t *this, static int load_features(private_plugin_loader_t *this, bool soft, bool report) { enumerator_t *enumerator; - plugin_feature_t *feature, *reg = NULL; + plugin_feature_t *feature, *reg; plugin_entry_t *entry; int count, i, loaded = 0; @@ -342,6 +342,7 @@ static int load_features(private_plugin_loader_t *this, bool soft, bool report) { /* feature interface not supported */ continue; } + reg = NULL; count = entry->plugin->get_features(entry->plugin, &feature); for (i = 0; i < count; i++) { |