fixed inproper delete of CHILD_SA
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user