strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d29d63c
)
Easier to understand test for soft dependencies in dependencies_satisfied.
author
Tobias Brunner
<tobias@strongswan.org>
Thu, 22 Sep 2011 15:59:17 +0000
(17:59 +0200)
committer
Martin Willi
<martin@revosec.ch>
Fri, 14 Oct 2011 08:05:46 +0000
(10:05 +0200)
src/libstrongswan/plugins/plugin_loader.c
patch
|
blob
|
history
diff --git
a/src/libstrongswan/plugins/plugin_loader.c
b/src/libstrongswan/plugins/plugin_loader.c
index
ecd1d71
..
462ba70
100644
(file)
--- a/
src/libstrongswan/plugins/plugin_loader.c
+++ b/
src/libstrongswan/plugins/plugin_loader.c
@@
-231,7
+231,6
@@
static bool feature_loaded(private_plugin_loader_t *this, plugin_entry_t *entry,
/**
* Check if dependencies are satisfied
*/
-
static bool dependencies_satisfied(private_plugin_loader_t *this, char *name,
bool soft, bool report, plugin_feature_t *features, int count)
{
@@
-266,7
+265,7
@@
static bool dependencies_satisfied(private_plugin_loader_t *this, char *name,
}
entries->destroy(entries);
- if (!found &&
!(features[i].kind == FEATURE_SDEPEND && !
soft))
+ if (!found &&
(features[i].kind != FEATURE_SDEPEND ||
soft))
{
if (report)
{