ike-rekey: Respond with TEMPORARY_FAILURE while reauthenticating
This could lead to duplicates as the new IKE_SA can't delete the old one once reauthentication is complete if it was replaced by a rekeying.
This commit is contained in:
@@ -231,6 +231,12 @@ METHOD(task_t, process_r, status_t,
|
|||||||
this->failed_temporarily = TRUE;
|
this->failed_temporarily = TRUE;
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
|
if (this->ike_sa->has_condition(this->ike_sa, COND_REAUTHENTICATING))
|
||||||
|
{
|
||||||
|
DBG1(DBG_IKE, "peer initiated rekeying, but we are reauthenticating");
|
||||||
|
this->failed_temporarily = TRUE;
|
||||||
|
return NEED_MORE;
|
||||||
|
}
|
||||||
if (have_half_open_children(this))
|
if (have_half_open_children(this))
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "peer initiated rekeying, but a child is half-open");
|
DBG1(DBG_IKE, "peer initiated rekeying, but a child is half-open");
|
||||||
|
|||||||
Reference in New Issue
Block a user