]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Reacquire keymat from new IKE_SA during task migration
authorMartin Willi <martin@revosec.ch>
Mon, 7 Jun 2010 12:56:24 +0000 (14:56 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 7 Jun 2010 12:56:24 +0000 (14:56 +0200)
src/libcharon/sa/tasks/ike_init.c

index 5eb33b54081b928e1b0486c9280046bdceeefb75..38fb572f44412115c36e1734e8970b6fc5d6b2da 100644 (file)
@@ -543,6 +543,7 @@ static void migrate(private_ike_init_t *this, ike_sa_t *ike_sa)
        chunk_free(&this->other_nonce);
 
        this->ike_sa = ike_sa;
+       this->keymat = ike_sa->get_keymat(ike_sa);
        this->proposal = NULL;
        DESTROY_IF(this->dh);
        this->dh = this->keymat->create_dh(this->keymat, this->dh_group);