}
}
+ this->child_sa->set_ipcomp(this->child_sa, this->ipcomp);
+ this->child_sa->set_mode(this->child_sa, this->mode);
+ this->child_sa->set_protocol(this->child_sa,
+ this->proposal->get_protocol(this->proposal));
+ this->child_sa->set_state(this->child_sa, CHILD_INSTALLING);
+
+ /* addresses might have changed since we originally sent the request, update
+ * them before we configure any policies and install the SAs */
+ this->child_sa->update(this->child_sa, me, other, NULL,
+ this->ike_sa->has_condition(this->ike_sa, COND_NAT_ANY));
+
this->child_sa->set_policies(this->child_sa, my_ts, other_ts);
if (!this->initiator)
{
offsetof(traffic_selector_t, destroy));
}
- this->child_sa->set_state(this->child_sa, CHILD_INSTALLING);
- this->child_sa->set_ipcomp(this->child_sa, this->ipcomp);
- this->child_sa->set_mode(this->child_sa, this->mode);
- this->child_sa->set_protocol(this->child_sa,
- this->proposal->get_protocol(this->proposal));
-
if (this->my_cpi == 0 || this->other_cpi == 0 || this->ipcomp == IPCOMP_NONE)
{
this->my_cpi = this->other_cpi = 0;