aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-01-28 00:14:50 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-01-28 00:14:50 +0000
commite43641e712099907c9ee30ebf9f497a930cf5571 (patch)
tree62674e0efc48ae6bf2604f9b495d46ca0b33a889
parent7bca75e51c27b8b589d53d85f373cf2a57566009 (diff)
downloadstrongswan-e43641e712099907c9ee30ebf9f497a930cf5571.tar.bz2
strongswan-e43641e712099907c9ee30ebf9f497a930cf5571.tar.xz
unload xauth_module only if XAUTH_DEFAULT_LIB is defined
-rw-r--r--src/pluto/xauth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pluto/xauth.c b/src/pluto/xauth.c
index 1947609bd..3d30ad227 100644
--- a/src/pluto/xauth.c
+++ b/src/pluto/xauth.c
@@ -61,6 +61,7 @@ xauth_init(void)
void
xauth_finalize(void)
{
+#ifdef XAUTH_DEFAULT_LIB
if (xauth_module.handle != NULL)
{
if (dlclose(xauth_module.handle))
@@ -74,4 +75,5 @@ xauth_finalize(void)
)
}
}
+#endif
}