* The UDP protocol was deleting a received error buffer twice in the case that

everything went okay. This finally fixes #6446.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38145 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-08-16 15:01:26 +00:00
parent 795ff7d3d4
commit 3f2a18bd30

View File

@ -738,12 +738,7 @@ UdpEndpointManager::ReceiveError(status_t error, net_buffer* buffer)
source.SetPort(header.source_port);
destination.SetPort(header.destination_port);
status_t status = domainSupport->DeliverError(error, buffer);
if (status != B_OK)
return status;
gBufferModule->free(buffer);
return B_OK;
return domainSupport->DeliverError(error, buffer);
}