ike-rekey: Make sure to ignore task when detecting collisions if ike-init subtask failed
For instance, if INVALID_KE_PAYLOAD is returned we don't want this task to affect any active rekeying (no new SA has been established so far).
This commit is contained in:
@@ -242,9 +242,10 @@ METHOD(task_t, build_r, status_t,
|
|||||||
message->add_notify(message, TRUE, NO_PROPOSAL_CHOSEN, chunk_empty);
|
message->add_notify(message, TRUE, NO_PROPOSAL_CHOSEN, chunk_empty);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->ike_init->task.build(&this->ike_init->task, message) == FAILED)
|
if (this->ike_init->task.build(&this->ike_init->task, message) == FAILED)
|
||||||
{
|
{
|
||||||
|
this->ike_init->task.destroy(&this->ike_init->task);
|
||||||
|
this->ike_init = NULL;
|
||||||
charon->bus->set_sa(charon->bus, this->ike_sa);
|
charon->bus->set_sa(charon->bus, this->ike_sa);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user