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 1947609..3d30ad2 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
 }