fixed DPD to survive IKE_SA rekeying
authorMartin Willi <martin@strongswan.org>
Thu, 28 Sep 2006 06:57:46 +0000 (06:57 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 28 Sep 2006 06:57:46 +0000 (06:57 -0000)
src/charon/sa/transactions/rekey_ike_sa.c

index 8f0b869..41d5180 100644 (file)
@@ -394,8 +394,8 @@ static status_t switchto_new_sa(private_rekey_ike_sa_t* this, bool initiator)
                return FAILED;
        }
        
+       this->new_sa->apply_connection(this->new_sa, this->connection);
        this->new_sa->set_state(this->new_sa, IKE_ESTABLISHED);
-       
        this->new_sa->set_lifetimes(this->new_sa,
                                                this->connection->get_soft_lifetime(this->connection),
                                                this->connection->get_hard_lifetime(this->connection));