ike-sa: Remove redundant setting of IKE_SA conditions after a rekeying
This was originally added withb0e40caafb("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 with094963d1b1("ikev2: Apply extensions and conditions before starting rekeying") in 2014 the extensions and conditions were set already there.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user