Convert empty CREATE_CHILD_SA exchange to an INFORMATIONAL

This commit is contained in:
Martin Willi
2009-09-03 17:32:41 +02:00
parent 9beb83868f
commit 72e2faf291
+3 -1
View File
@@ -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->spi, FALSE);
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;
}
/* we work only with the inbound SPI */