child-sa: Delete inbound SAs even if not installed to remove allocated SPIs
If we can't establish an SA, this should delete the allocated SPI.
This commit is contained in:
@@ -1706,8 +1706,9 @@ METHOD(child_sa_t, destroy, void,
|
|||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* delete SAs in the kernel, if they are set up */
|
/* delete SAs in the kernel, if they are set up, inbound is always deleted
|
||||||
if (this->my_spi && this->inbound_installed)
|
* to remove allocated SPIs */
|
||||||
|
if (this->my_spi)
|
||||||
{
|
{
|
||||||
kernel_ipsec_sa_id_t id = {
|
kernel_ipsec_sa_id_t id = {
|
||||||
.src = this->other_addr,
|
.src = this->other_addr,
|
||||||
|
|||||||
Reference in New Issue
Block a user