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 59b5591..fe41a1c 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;