ike: Don't reset optional CHILD_SA properties when migrating child-creating tasks

These are set via methods, which are not called again after migration
(e.g. when retrying due to INVALID_KE or when moving queued tasks), so we
don't want to clear these values.
This commit is contained in:
Tobias Brunner
2022-04-14 18:42:01 +02:00
parent 93d8177674
commit 366ac36a1f
2 changed files with 0 additions and 2 deletions
@@ -1475,7 +1475,6 @@ METHOD(task_t, migrate, void,
this->dh = NULL; this->dh = NULL;
this->spi_i = 0; this->spi_i = 0;
this->spi_r = 0; this->spi_r = 0;
this->child = (child_sa_create_t){};
if (!this->initiator) if (!this->initiator)
{ {
@@ -1876,7 +1876,6 @@ METHOD(task_t, migrate, void,
this->ipcomp_received = IPCOMP_NONE; this->ipcomp_received = IPCOMP_NONE;
this->other_cpi = 0; this->other_cpi = 0;
this->established = FALSE; this->established = FALSE;
this->child = (child_sa_create_t){};
} }
METHOD(task_t, destroy, void, METHOD(task_t, destroy, void,