do not roam IKE_SA in created or deleting state
authorMartin Willi <martin@strongswan.org>
Wed, 4 Jun 2008 14:31:06 +0000 (14:31 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 4 Jun 2008 14:31:06 +0000 (14:31 -0000)
src/charon/sa/ike_sa.c

index a6b3927..e19b7be 100644 (file)
@@ -2094,6 +2094,14 @@ static status_t roam(private_ike_sa_t *this, bool address)
        host_t *me, *other;
        ike_mobike_t *mobike;
        
+       switch (this->state)
+       {
+               case IKE_CREATED:
+               case IKE_DELETING:
+                       return SUCCESS;
+               default:
+                       break;
+       }
        /* responder just updates the peer about changed address config */
        if (!this->ike_sa_id->is_initiator(this->ike_sa_id))
        {