child-sa: Reclaim old state if SA updating is not supported
If the state stays at UPDATING, the fallback using IKEv1 rekeying fails as the task manager refuses to rekey a CHILD_SA in non-INSTALLED state.
This commit is contained in:
@@ -916,6 +916,7 @@ METHOD(child_sa_t, update, status_t,
|
||||
this->other_addr, this->my_addr, other, me,
|
||||
this->encap, encap, this->mark_in) == NOT_SUPPORTED)
|
||||
{
|
||||
set_state(this, old);
|
||||
return NOT_SUPPORTED;
|
||||
}
|
||||
}
|
||||
@@ -929,6 +930,7 @@ METHOD(child_sa_t, update, status_t,
|
||||
this->my_addr, this->other_addr, me, other,
|
||||
this->encap, encap, this->mark_out) == NOT_SUPPORTED)
|
||||
{
|
||||
set_state(this, old);
|
||||
return NOT_SUPPORTED;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user