fixed inproper delete of CHILD_SA

This commit is contained in:
Martin Willi
2007-03-21 07:01:14 +00:00
parent 128ca073d2
commit 403f8fd300
+7 -4
View File
@@ -135,10 +135,13 @@ static void process_payloads(private_child_delete_t *this, message_t *message)
/* we reply as usual, rekeying will fail */
break;
case CHILD_DELETING:
/* we don't send back a delete */
this->ike_sa->destroy_child_sa(this->ike_sa,
protocol, *spi);
continue;
/* we don't send back a delete if we initiated ourself */
if (!this->initiator)
{
this->ike_sa->destroy_child_sa(this->ike_sa,
protocol, *spi);
continue;
}
default:
break;
}