Ignore additional TRANSACTION request if we already queued one
This commit is contained in:
@@ -906,9 +906,14 @@ METHOD(task_manager_t, process_message, status_t,
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
if (msg->get_exchange_type(msg) == TRANSACTION &&
|
if (msg->get_exchange_type(msg) == TRANSACTION &&
|
||||||
this->active_tasks->get_count(this->active_tasks) &&
|
this->active_tasks->get_count(this->active_tasks))
|
||||||
!this->queued)
|
|
||||||
{ /* main mode not yet complete, queue XAuth/Mode config tasks */
|
{ /* main mode not yet complete, queue XAuth/Mode config tasks */
|
||||||
|
if (this->queued)
|
||||||
|
{
|
||||||
|
DBG1(DBG_IKE, "ignoring additional %N request, queue full",
|
||||||
|
exchange_type_names, TRANSACTION);
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
this->queued = message_create_from_packet(msg->get_packet(msg));
|
this->queued = message_create_from_packet(msg->get_packet(msg));
|
||||||
if (this->queued->parse_header(this->queued) != SUCCESS)
|
if (this->queued->parse_header(this->queued) != SUCCESS)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user