fixed set_message_id() on IKE_SA
added missing bus->message() hook invocation whitespace cleanups
This commit is contained in:
@@ -416,11 +416,11 @@ static void set_message_id(private_ike_sa_t *this, bool initiate, u_int32_t mid)
|
|||||||
{
|
{
|
||||||
if (initiate)
|
if (initiate)
|
||||||
{
|
{
|
||||||
this->task_manager->reset(this->task_manager, UINT_MAX, mid);
|
this->task_manager->reset(this->task_manager, mid, UINT_MAX);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->task_manager->reset(this->task_manager, mid, UINT_MAX);
|
this->task_manager->reset(this->task_manager, UINT_MAX, mid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -445,15 +445,18 @@ static status_t build_request(private_task_manager_t *this)
|
|||||||
DESTROY_IF(this->initiating.packet);
|
DESTROY_IF(this->initiating.packet);
|
||||||
status = this->ike_sa->generate_message(this->ike_sa, message,
|
status = this->ike_sa->generate_message(this->ike_sa, message,
|
||||||
&this->initiating.packet);
|
&this->initiating.packet);
|
||||||
message->destroy(message);
|
|
||||||
if (status != SUCCESS)
|
if (status != SUCCESS)
|
||||||
{
|
{
|
||||||
/* message generation failed. There is nothing more to do than to
|
/* message generation failed. There is nothing more to do than to
|
||||||
* close the SA */
|
* close the SA */
|
||||||
|
message->destroy(message);
|
||||||
flush(this);
|
flush(this);
|
||||||
return DESTROY_ME;
|
return DESTROY_ME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
charon->bus->message(charon->bus, message, FALSE);
|
||||||
|
message->destroy(message);
|
||||||
|
|
||||||
return retransmit(this, this->initiating.mid);
|
return retransmit(this, this->initiating.mid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user