Double check if we have a packet before retransmitting it
This commit is contained in:
@@ -871,12 +871,12 @@ METHOD(task_manager_t, process_message, status_t,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
hash = chunk_hash(msg->get_packet_data(msg));
|
hash = chunk_hash(msg->get_packet_data(msg));
|
||||||
if (hash == this->responding.hash)
|
if (hash == this->responding.hash && this->responding.packet)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "received retransmit of request with ID %d, "
|
DBG1(DBG_IKE, "received retransmit of request with ID %d, "
|
||||||
"retransmitting response", mid);
|
"retransmitting response", mid);
|
||||||
charon->sender->send(charon->sender,
|
charon->sender->send(charon->sender,
|
||||||
this->responding.packet->clone(this->responding.packet));
|
this->responding.packet->clone(this->responding.packet));
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
msg->set_request(msg, TRUE);
|
msg->set_request(msg, TRUE);
|
||||||
|
|||||||
Reference in New Issue
Block a user