Patch by Vasilis Kaoutsis:

* FragmentPacket::Reassemble() would return NULL instead of an error when the
  packet was not yet complete.
* This didn't have any actual consequences, though, as Reassemble() was only
  called for a complete fragment set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25758 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-06-02 11:10:35 +00:00
parent b0f4256dcd
commit cbeac9882f

View File

@ -368,15 +368,14 @@ FragmentPacket::AddFragment(uint16 start, uint16 end, net_buffer *buffer,
}
/*!
Reassembles the fragments to the specified buffer \a to.
/*! Reassembles the fragments to the specified buffer \a to.
This buffer must have been added via AddFragment() before.
*/
status_t
FragmentPacket::Reassemble(net_buffer *to)
{
if (!IsComplete())
return NULL;
return B_ERROR;
net_buffer *buffer = NULL;