ike: Remove redundant check for local NAT when handling changed NAT mappings

This commit is contained in:
Tobias Brunner
2014-10-13 15:20:17 +02:00
parent cb5ad2ba3d
commit f8a565fbcc
@@ -62,13 +62,8 @@ METHOD(job_t, execute, job_requeue_t,
DBG1(DBG_JOB, "CHILD_SA with reqid %d not found for update", this->reqid); DBG1(DBG_JOB, "CHILD_SA with reqid %d not found for update", this->reqid);
} }
else else
{
/* we update only if other host is NATed, but not our */
if (ike_sa->has_condition(ike_sa, COND_NAT_THERE) &&
!ike_sa->has_condition(ike_sa, COND_NAT_HERE))
{ {
ike_sa->update_hosts(ike_sa, NULL, this->new, FALSE); ike_sa->update_hosts(ike_sa, NULL, this->new, FALSE);
}
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa); charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
} }
return JOB_REQUEUE_NONE; return JOB_REQUEUE_NONE;