* UDP really wanted to make sure that the error buffer was freed, and just did
it once more. This should be the final nail on bug #6446. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38178 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a690e25952
commit
7e046eab3b
@ -1254,14 +1254,13 @@ udp_error_received(net_error error, net_buffer* buffer)
|
||||
case B_NET_ERROR_QUENCH:
|
||||
default:
|
||||
// ignore them
|
||||
break;
|
||||
gBufferModule->free(buffer);
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
if (notifyError != B_OK)
|
||||
sUdpEndpointManager->ReceiveError(notifyError, buffer);
|
||||
ASSERT(notifyError != B_OK);
|
||||
|
||||
gBufferModule->free(buffer);
|
||||
return B_OK;
|
||||
return sUdpEndpointManager->ReceiveError(notifyError, buffer);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user