During reauthentication reestablish IKE_SA even if deleting the old one fails.

This commit is contained in:
Tobias Brunner
2012-05-25 17:05:53 +02:00
parent 23470d849a
commit 7457143072
+6
View File
@@ -1627,6 +1627,12 @@ METHOD(ike_sa_t, retransmit, status_t,
}
case IKE_DELETING:
DBG1(DBG_IKE, "proper IKE_SA delete failed, peer not responding");
if (this->is_reauthenticating)
{
DBG1(DBG_IKE, "delete during reauthentication failed, "
"trying to reestablish IKE_SA anyway");
reestablish(this);
}
break;
case IKE_REKEYING:
DBG1(DBG_IKE, "rekeying IKE_SA failed, peer not responding");