sending an SPI of 0 as responder when IKE_SA_INIT fails
This commit is contained in:
@@ -426,6 +426,13 @@ static status_t build_response(private_task_manager_t *this,
|
|||||||
}
|
}
|
||||||
iterator->destroy(iterator);
|
iterator->destroy(iterator);
|
||||||
|
|
||||||
|
/* remove resonder SPI if IKE_SA_INIT failed */
|
||||||
|
if (delete && exchange == IKE_SA_INIT)
|
||||||
|
{
|
||||||
|
ike_sa_id_t *id = this->ike_sa->get_id(this->ike_sa);
|
||||||
|
id->set_responder_spi(id, 0);
|
||||||
|
}
|
||||||
|
|
||||||
/* message complete, send it */
|
/* message complete, send it */
|
||||||
DESTROY_IF(this->responding.packet);
|
DESTROY_IF(this->responding.packet);
|
||||||
status = this->ike_sa->generate_message(this->ike_sa, message,
|
status = this->ike_sa->generate_message(this->ike_sa, message,
|
||||||
|
|||||||
Reference in New Issue
Block a user