* Forgot to set the data_node::located in clone_buffer().
* No need to set data_node::header in the loop - this is already done in add_data_node(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19408 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
78e96e0cfe
commit
cdd2dcca7f
@ -362,9 +362,10 @@ clone_buffer(net_buffer *_buffer, bool shareFreeSpace)
|
||||
// grab reference to this buffer - all additional nodes will get
|
||||
// theirs in add_data_node()
|
||||
atomic_add(&sourceNode->header->ref_count, 1);
|
||||
node->header = sourceNode->header;
|
||||
node->located = NULL;
|
||||
|
||||
while (sourceNode != NULL) {
|
||||
node->header = sourceNode->header;
|
||||
node->start = sourceNode->start;
|
||||
node->used = sourceNode->used;
|
||||
node->offset = sourceNode->offset;
|
||||
|
Loading…
Reference in New Issue
Block a user