Convert empty CREATE_CHILD_SA exchange to an INFORMATIONAL
This commit is contained in:
@@ -135,7 +135,9 @@ static status_t build_i(private_child_rekey_t *this, message_t *message)
|
|||||||
this->child_sa = this->ike_sa->get_child_sa(this->ike_sa, this->protocol,
|
this->child_sa = this->ike_sa->get_child_sa(this->ike_sa, this->protocol,
|
||||||
this->spi, FALSE);
|
this->spi, FALSE);
|
||||||
if (!this->child_sa)
|
if (!this->child_sa)
|
||||||
{ /* CHILD_SA is gone, unable to rekey */
|
{ /* CHILD_SA is gone, unable to rekey. As an empty CREATE_CHILD_SA
|
||||||
|
* exchange is invalid, we fall back to an INFORMATIONAL exchange.*/
|
||||||
|
message->set_exchange_type(message, INFORMATIONAL);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
/* we work only with the inbound SPI */
|
/* we work only with the inbound SPI */
|
||||||
|
|||||||
Reference in New Issue
Block a user