reset IKE_SA on bus after checkout/checkin of replacement SA
authorMartin Willi <martin@strongswan.org>
Tue, 2 Jun 2009 13:26:29 +0000 (15:26 +0200)
committerMartin Willi <martin@strongswan.org>
Tue, 16 Jun 2009 15:27:24 +0000 (17:27 +0200)
src/charon/sa/ike_sa.c

index 8adf052..6b7fa35 100644 (file)
@@ -1651,13 +1651,15 @@ static status_t reestablish(private_ike_sa_t *this)
        if (status == DESTROY_ME)
        {
                charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager, new);
-               return FAILED;
+               status = FAILED;
        }
        else
        {
                charon->ike_sa_manager->checkin(charon->ike_sa_manager, new);
-               return SUCCESS;
+               status = SUCCESS;
        }
+       charon->bus->set_sa(charon->bus, &this->public);
+       return status;
 }
 
 /**