]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
unload xauth_module only if XAUTH_DEFAULT_LIB is defined
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 28 Jan 2007 00:14:50 +0000 (00:14 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 28 Jan 2007 00:14:50 +0000 (00:14 -0000)
src/pluto/xauth.c

index 1947609bdd4a2fe4afcf2a780c9f4b5b825d8e72..3d30ad227985e93fc7043e3f9efdb59ab17e340c 100644 (file)
@@ -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
 }