diff --git a/src/libcharon/sa/ikev2/tasks/child_create.c b/src/libcharon/sa/ikev2/tasks/child_create.c index a642a7686..278d09a60 100644 --- a/src/libcharon/sa/ikev2/tasks/child_create.c +++ b/src/libcharon/sa/ikev2/tasks/child_create.c @@ -1853,7 +1853,10 @@ METHOD(task_t, migrate, void, { this->proposals->destroy_offset(this->proposals, offsetof(proposal_t, destroy)); } - + if (!this->rekey) + { + this->dh_group = MODP_NONE; + } this->ike_sa = ike_sa; this->keymat = (keymat_v2_t*)ike_sa->get_keymat(ike_sa); this->proposal = NULL;