diff --git a/src/charon/sa/transactions/rekey_ike_sa.c b/src/charon/sa/transactions/rekey_ike_sa.c index 8f0b869e9..41d51802d 100644 --- a/src/charon/sa/transactions/rekey_ike_sa.c +++ b/src/charon/sa/transactions/rekey_ike_sa.c @@ -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));