child-sa: Cache and forward actual initiator flag for outbound SA

Kernel interfaces (e.g. TKM) might rely on this flag to be correct.
This commit is contained in:
Tobias Brunner
2022-06-29 10:28:50 +02:00
parent 8d6ed71a55
commit 639af09b2e
3 changed files with 15 additions and 7 deletions
+2 -2
View File
@@ -715,13 +715,13 @@ static status_t select_and_install(private_child_create_t *this,
{
status_o = this->child_sa->register_outbound(this->child_sa,
encr_i, integ_i, this->other_spi, this->other_cpi,
this->tfcv3);
this->initiator, this->tfcv3);
}
else
{
status_o = this->child_sa->register_outbound(this->child_sa,
encr_r, integ_r, this->other_spi, this->other_cpi,
this->tfcv3);
this->initiator, this->tfcv3);
}
}
else if (this->initiator)