ike-sa: Remove redundant setting of IKE_SA conditions after a rekeying

This was originally added with b0e40caafb ("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 094963d1b1 ("ikev2: Apply extensions and conditions before
starting rekeying") in 2014 the extensions and conditions were set
already there.
This commit is contained in:
Tobias Brunner
2025-04-10 08:31:09 +02:00
parent 07978c16b3
commit 8679d91c81
-2
View File
@@ -3005,8 +3005,6 @@ METHOD(ike_sa_t, inherit_post, void,
array_insert(this->attributes, ARRAY_TAIL, &entry);
}
/* inherit all conditions */
this->conditions = other->conditions;
if (this->conditions & COND_NAT_HERE)
{
send_keepalive(this, FALSE);