flushing task_manager on shutdown while IKE_SA is usable
authorMartin Willi <martin@strongswan.org>
Wed, 25 Jun 2008 11:40:50 +0000 (11:40 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 25 Jun 2008 11:40:50 +0000 (11:40 -0000)
src/charon/sa/ike_sa.c

index 898771f..6805a7e 100644 (file)
@@ -2411,6 +2411,8 @@ static void destroy(private_ike_sa_t *this)
 {
        this->child_sas->destroy_offset(this->child_sas, offsetof(child_sa_t, destroy));
        
+       this->task_manager->destroy(this->task_manager);
+       
        DESTROY_IF(this->crypter_in);
        DESTROY_IF(this->crypter_out);
        DESTROY_IF(this->signer_in);
@@ -2463,7 +2465,6 @@ static void destroy(private_ike_sa_t *this)
        DESTROY_IF(this->other_auth);
        
        this->ike_sa_id->destroy(this->ike_sa_id);
-       this->task_manager->destroy(this->task_manager);
        free(this);
 }