child-create: Respond with TEMPORARY_FAILURE while rekeying/deleting IKE_SA
This commit is contained in:
@@ -1232,13 +1232,13 @@ METHOD(task_t, build_r, status_t,
|
|||||||
if (this->ike_sa->get_state(this->ike_sa) == IKE_REKEYING)
|
if (this->ike_sa->get_state(this->ike_sa) == IKE_REKEYING)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "unable to create CHILD_SA while rekeying IKE_SA");
|
DBG1(DBG_IKE, "unable to create CHILD_SA while rekeying IKE_SA");
|
||||||
message->add_notify(message, TRUE, NO_ADDITIONAL_SAS, chunk_empty);
|
message->add_notify(message, TRUE, TEMPORARY_FAILURE, chunk_empty);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
if (this->ike_sa->get_state(this->ike_sa) == IKE_DELETING)
|
if (this->ike_sa->get_state(this->ike_sa) == IKE_DELETING)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "unable to create CHILD_SA while deleting IKE_SA");
|
DBG1(DBG_IKE, "unable to create CHILD_SA while deleting IKE_SA");
|
||||||
message->add_notify(message, TRUE, NO_ADDITIONAL_SAS, chunk_empty);
|
message->add_notify(message, TRUE, TEMPORARY_FAILURE, chunk_empty);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user