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 */
|
/* we reply as usual, rekeying will fail */
|
||||||
break;
|
break;
|
||||||
case CHILD_DELETING:
|
case CHILD_DELETING:
|
||||||
/* we don't send back a delete */
|
/* we don't send back a delete if we initiated ourself */
|
||||||
this->ike_sa->destroy_child_sa(this->ike_sa,
|
if (!this->initiator)
|
||||||
protocol, *spi);
|
{
|
||||||
continue;
|
this->ike_sa->destroy_child_sa(this->ike_sa,
|
||||||
|
protocol, *spi);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user