ikev1: Properly initialize list of fragments in case fragment ID is 0
Fixes CVE-2013-6076.
This commit is contained in:
committed by
Andreas Steffen
parent
7f4a13fffb
commit
643da9d2e6
@@ -1273,7 +1273,7 @@ static status_t handle_fragment(private_task_manager_t *this, message_t *msg)
|
|||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->frag.id != payload->get_id(payload))
|
if (!this->frag.list || this->frag.id != payload->get_id(payload))
|
||||||
{
|
{
|
||||||
clear_fragments(this, payload->get_id(payload));
|
clear_fragments(this, payload->get_id(payload));
|
||||||
this->frag.list = linked_list_create();
|
this->frag.list = linked_list_create();
|
||||||
|
|||||||
Reference in New Issue
Block a user