Consider notify errors fatal only during main mode

This commit is contained in:
Martin Willi
2012-03-20 17:31:24 +01:00
parent 767966e70b
commit fceb20f390
+4 -1
View File
@@ -84,7 +84,10 @@ METHOD(task_t, process_r, status_t,
{
DBG1(DBG_IKE, "received %N error notify",
notify_type_names, notify->get_notify_type(notify));
status = FAILED;
if (this->ike_sa->get_state(this->ike_sa) == IKE_CONNECTING)
{ /* only critical during main mode */
status = FAILED;
}
break;
}
else