diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-08 19:48:34 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-10 18:52:42 +0200 |
commit | 5b03a350fc7093aa6984dfcafede98fbb62809eb (patch) | |
tree | 0f0ae851da9a7b454913710da1b068afe538f97a /src/libstrongswan/plugins/plugin_loader.c | |
parent | 6de28173f08e9ab0707698cb97ec54132b03cfd1 (diff) | |
download | strongswan-5b03a350fc7093aa6984dfcafede98fbb62809eb.tar.bz2 strongswan-5b03a350fc7093aa6984dfcafede98fbb62809eb.tar.xz |
use NULL to load plugins from default plugin directory
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.c')
-rw-r--r-- | src/libstrongswan/plugins/plugin_loader.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index 644ac1fd2..d4513f25a 100644 --- a/src/libstrongswan/plugins/plugin_loader.c +++ b/src/libstrongswan/plugins/plugin_loader.c @@ -116,6 +116,11 @@ static bool load(private_plugin_loader_t *this, char *path, char *list) char *token; bool critical_failed = FALSE; + if (path == NULL) + { + path = PLUGINDIR; + } + enumerator = enumerator_create_token(list, " ", " "); while (!critical_failed && enumerator->enumerate(enumerator, &token)) { |