child-sa: Install outbound SA immediately if kernel supports SPIs on policies

This commit is contained in:
Tobias Brunner
2017-08-07 10:44:05 +02:00
parent 2c116ef589
commit a146b4c9ef
3 changed files with 46 additions and 25 deletions
+3 -3
View File
@@ -698,9 +698,9 @@ static status_t select_and_install(private_child_create_t *this,
status_i = this->child_sa->install(this->child_sa, encr_i, integ_i,
this->my_spi, this->my_cpi, this->initiator,
TRUE, this->tfcv3);
this->child_sa->register_outbound(this->child_sa, encr_r, integ_r,
this->other_spi, this->other_cpi, this->tfcv3);
status_o = SUCCESS;
status_o = this->child_sa->register_outbound(this->child_sa, encr_r,
integ_r, this->other_spi, this->other_cpi,
this->tfcv3);
}
}