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:
Martin Willi
2014-05-09 08:49:08 +02:00
parent b30c09eaff
commit b1b01840b6
+2
View File
@@ -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;
}
}