child-create: Don't reset DH group when retrying after INVALID_KE_PAYLOAD

migrate() is called before retrying.

Fixes: 0184a69b7b ("child-create: Properly handle DH group during
migration when reestablishing")
This commit is contained in:
Tobias Brunner 2020-06-05 16:41:23 +02:00
parent 736ac65554
commit 59ebdac49b
1 changed files with 1 additions and 1 deletions

View File

@ -1853,7 +1853,7 @@ METHOD(task_t, migrate, void,
{
this->proposals->destroy_offset(this->proposals, offsetof(proposal_t, destroy));
}
if (!this->rekey)
if (!this->rekey && !this->retry)
{
this->dh_group = MODP_NONE;
}