schedule rekeying when activating passive IKE_SAs
authorMartin Willi <martin@strongswan.org>
Fri, 28 Nov 2008 16:19:19 +0000 (16:19 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 28 Nov 2008 16:19:19 +0000 (16:19 -0000)
src/charon/sa/ike_sa.c

index ea25dea..3e13249 100644 (file)
@@ -637,7 +637,8 @@ static void set_state(private_ike_sa_t *this, ike_sa_state_t state)
        {
                case IKE_ESTABLISHED:
                {
-                       if (this->state == IKE_CONNECTING)
+                       if (this->state == IKE_CONNECTING ||
+                               this->state == IKE_PASSIVE)
                        {
                                job_t *job;
                                u_int32_t t;