]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ike-mobike: Don't trigger update for NAT mapping change detected during an address...
authorTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 07:48:07 +0000 (08:48 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 14:53:30 +0000 (15:53 +0100)
This is really only needed for other exchanges like DPDs not when we
just updated the addresses. The NAT-D payloads are only used here to
detect whether UDP encapsulation has to be enabled/disabled.

src/libcharon/sa/ikev2/tasks/ike_mobike.c

index 59b55918d325cf2854024910e68c168bd23eff4a..fe41a1cacf75556ea38384f65331a1cdb73bd740 100644 (file)
@@ -574,7 +574,7 @@ METHOD(task_t, process_i, status_t,
                if (this->natd)
                {
                        this->natd->task.process(&this->natd->task, message);
-                       if (this->natd->has_mapping_changed(this->natd))
+                       if (!this->update && this->natd->has_mapping_changed(this->natd))
                        {
                                /* force an update if mappings have changed */
                                this->update = this->check = TRUE;