]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ike: Ignore roaming events if disabled by config
authorTobias Brunner <tobias@strongswan.org>
Tue, 15 Nov 2016 15:23:50 +0000 (16:23 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Feb 2017 10:33:34 +0000 (11:33 +0100)
src/libcharon/sa/ike_sa.c

index 76294ce39b1d48f406012adec178d89b38d4dc2d..ff35782da010287849c61ee59a0f293f21f8025a 100644 (file)
@@ -2539,6 +2539,11 @@ METHOD(ike_sa_t, roam, status_t,
                        break;
        }
 
+       if (this->peer_cfg->no_roaming(this->peer_cfg))
+       {       /* disabled by config */
+               return SUCCESS;
+       }
+
        /* ignore roam events if MOBIKE is not supported/enabled and the local
         * address is statically configured */
        if (this->version == IKEV2 && !supports_extension(this, EXT_MOBIKE) &&