NAT-T conditions were not inherited during IKE_SA rekeying

This commit is contained in:
Andreas Steffen
2008-01-29 01:41:47 +00:00
parent 5862981ce9
commit b0e40caafb
+8 -1
View File
@@ -2090,7 +2090,14 @@ static status_t inherit(private_ike_sa_t *this, private_ike_sa_t *other)
{
this->dns_servers->insert_first(this->dns_servers, ip);
}
/* inherit NAT-T conditions */
this->conditions = other->conditions;
if (this->conditions & COND_NAT_HERE)
{
send_keepalive(this);
}
/* adopt all children */
while (other->child_sas->remove_last(other->child_sas,
(void**)&child_sa) == SUCCESS)