From f025de005d719201a69ad0313d545a1ddd244752 Mon Sep 17 00:00:00 2001 From: Steffan Karger Date: Mon, 27 Apr 2015 16:28:57 +0200 Subject: Call daemon() before initializing crypto library But keep the chdir to / at the place where deamon() was before, to preserve the current behaviour wrt relative paths in the config. This should fix the issue reported in trac #480, without changing the behaviour visible to the end user. Note that by moving the daemon() call to an earlier stage of the init process, we no longer have to call platform_mlockall() again, or do a pkcs11_forkFixup(). Signed-off-by: Steffan Karger Acked-by: Gert Doering Message-Id: <1430144937-4149-1-git-send-email-steffan@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/9609 Signed-off-by: Gert Doering (cherry picked from commit da9b292733e929a2900dc32d37f0424c3d588366) --- src/openvpn/pkcs11.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/openvpn/pkcs11.c') diff --git a/src/openvpn/pkcs11.c b/src/openvpn/pkcs11.c index 3a15ef6..a1f13c5 100644 --- a/src/openvpn/pkcs11.c +++ b/src/openvpn/pkcs11.c @@ -336,11 +336,6 @@ pkcs11_terminate () { ); } -void -pkcs11_forkFixup () { - pkcs11h_forkFixup (); -} - bool pkcs11_addProvider ( const char * const provider, -- cgit