ike-mobike: Don't reset address update flag if set previously
authorTobias Brunner <tobias@strongswan.org>
Mon, 29 Jan 2018 10:44:36 +0000 (11:44 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 9 Feb 2018 10:21:02 +0000 (11:21 +0100)
If we update a queued job we don't want to reset previously set task
properties.

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

index dc0f24f..249f025 100644 (file)
@@ -627,7 +627,7 @@ METHOD(ike_mobike_t, roam, void,
           private_ike_mobike_t *this, bool address)
 {
        this->check = TRUE;
-       this->address = address;
+       this->address |= address;
        if (!this->pending_update)
        {
                this->pending_update = TRUE;