Reacquire keymat from new IKE_SA during task migration

This commit is contained in:
Martin Willi
2010-06-07 14:56:24 +02:00
parent d5ad6eb1e0
commit 8b56ec20f3
+1
View 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);