diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2014-10-10 12:44:15 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2014-10-13 15:20:17 +0200 |
| commit | f8a565fbccbe077583f556d2148041d3b1de5580 (patch) | |
| tree | 6961921fcdcaceec9802c069f1e465a43bb483cb /src/libcharon/processing | |
| parent | cb5ad2ba3d0cae149300bb00b48ed14237db05dc (diff) | |
| download | strongswan-f8a565fbccbe077583f556d2148041d3b1de5580.tar.bz2 strongswan-f8a565fbccbe077583f556d2148041d3b1de5580.tar.xz | |
ike: Remove redundant check for local NAT when handling changed NAT mappings
Diffstat (limited to 'src/libcharon/processing')
| -rw-r--r-- | src/libcharon/processing/jobs/update_sa_job.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libcharon/processing/jobs/update_sa_job.c b/src/libcharon/processing/jobs/update_sa_job.c index 694318522..e6d7da2c6 100644 --- a/src/libcharon/processing/jobs/update_sa_job.c +++ b/src/libcharon/processing/jobs/update_sa_job.c @@ -63,12 +63,7 @@ METHOD(job_t, execute, job_requeue_t, } 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); } return JOB_REQUEUE_NONE; |
