aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/daemon.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-02-22 14:56:35 +0100
committerMartin Willi <martin@revosec.ch>2010-02-26 11:44:32 +0100
commitdab05604978ee4bee8896d1763fbaef17f7dde83 (patch)
tree9b381e5ffebbe4cdb7d359b58f04e6903360eae3 /src/charon/daemon.c
parentc711687c00d1bdfdfeda47471f6447175f7e523d (diff)
downloadstrongswan-dab05604978ee4bee8896d1763fbaef17f7dde83.tar.bz2
strongswan-dab05604978ee4bee8896d1763fbaef17f7dde83.tar.xz
Moved socket and socket-raw implementations to plugins
Diffstat (limited to 'src/charon/daemon.c')
-rw-r--r--src/charon/daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c
index e71225fd1..abaab7e03 100644
--- a/src/charon/daemon.c
+++ b/src/charon/daemon.c
@@ -185,6 +185,7 @@ static void destroy(private_daemon_t *this)
{
this->public.ike_sa_manager->flush(this->public.ike_sa_manager);
}
+ DESTROY_IF(this->public.receiver);
/* unload plugins to release threads */
lib->plugins->unload(lib->plugins);
#ifdef CAPABILITIES
@@ -204,7 +205,6 @@ static void destroy(private_daemon_t *this)
DESTROY_IF(this->public.backends);
DESTROY_IF(this->public.credentials);
DESTROY_IF(this->public.sender);
- DESTROY_IF(this->public.receiver);
DESTROY_IF(this->public.socket);
/* wait until all threads are gone */
DESTROY_IF(this->public.processor);
@@ -494,7 +494,7 @@ static bool initialize(private_daemon_t *this, bool syslog, level_t levels[])
this->public.sim = sim_manager_create();
this->public.backends = backend_manager_create();
this->public.kernel_interface = kernel_interface_create();
- this->public.socket = socket_create();
+ this->public.socket = socket_manager_create();
this->public.traps = trap_manager_create();
/* load plugins, further infrastructure may need it */