This was originally added with
b0e40caafbd7 ("NAT-T conditions were not
inherited during IKE_SA rekeying") in 2008 when there was only a single
inherit() method. Later the inherit_pre() method was added and then
with
094963d1b160 ("ikev2: Apply extensions and conditions before
starting rekeying") in 2014 the extensions and conditions were set
already there.
array_insert(this->attributes, ARRAY_TAIL, &entry);
}
- /* inherit all conditions */
- this->conditions = other->conditions;
if (this->conditions & COND_NAT_HERE)
{
send_keepalive(this, FALSE);