aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/tnccs_20/tnccs_20.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-05-06 15:13:05 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-05-06 15:13:05 +0200
commit50a43c79a64948d503c9ac0cc6c08bb1aa1dd61d (patch)
treea4c6b2def1f4f8d1fdf40508578b48f7cd9654ba /src/libcharon/plugins/tnccs_20/tnccs_20.c
parent51f259a82d7934dd0029a934616264009c986e5c (diff)
downloadstrongswan-50a43c79a64948d503c9ac0cc6c08bb1aa1dd61d.tar.bz2
strongswan-50a43c79a64948d503c9ac0cc6c08bb1aa1dd61d.tar.xz
refactored tnccs->remove_connection()
Diffstat (limited to 'src/libcharon/plugins/tnccs_20/tnccs_20.c')
-rw-r--r--src/libcharon/plugins/tnccs_20/tnccs_20.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/libcharon/plugins/tnccs_20/tnccs_20.c b/src/libcharon/plugins/tnccs_20/tnccs_20.c
index 38ed3aa9b..0bf241995 100644
--- a/src/libcharon/plugins/tnccs_20/tnccs_20.c
+++ b/src/libcharon/plugins/tnccs_20/tnccs_20.c
@@ -625,17 +625,8 @@ METHOD(tls_t, get_eap_msk, chunk_t,
METHOD(tls_t, destroy, void,
private_tnccs_20_t *this)
{
- if (this->is_server)
- {
- charon->imvs->notify_connection_change(charon->imvs,
- this->connection_id, TNC_CONNECTION_STATE_DELETE);
- }
- else
- {
- charon->imcs->notify_connection_change(charon->imcs,
- this->connection_id, TNC_CONNECTION_STATE_DELETE);
- }
- charon->tnccs->remove_connection(charon->tnccs, this->connection_id);
+ charon->tnccs->remove_connection(charon->tnccs, this->connection_id,
+ this->is_server);
this->state_machine->destroy(this->state_machine);
this->mutex->destroy(this->mutex);
DESTROY_IF(this->batch);