ike: Remove redundant check for local NAT when handling changed NAT mappings
authorTobias Brunner <tobias@strongswan.org>
Fri, 10 Oct 2014 10:44:15 +0000 (12:44 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Oct 2014 13:20:17 +0000 (15:20 +0200)
src/libcharon/processing/jobs/update_sa_job.c

index 6943185..e6d7da2 100644 (file)
@@ -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;