* 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:
Axel Dörfler
2010-08-17 09:51:22 +00:00
parent a690e25952
commit 7e046eab3b
@@ -1254,16 +1254,15 @@ udp_error_received(net_error error, net_buffer* buffer)
case B_NET_ERROR_QUENCH: case B_NET_ERROR_QUENCH:
default: default:
// ignore them // ignore them
break;
}
if (notifyError != B_OK)
sUdpEndpointManager->ReceiveError(notifyError, buffer);
gBufferModule->free(buffer); gBufferModule->free(buffer);
return B_OK; return B_OK;
} }
ASSERT(notifyError != B_OK);
return sUdpEndpointManager->ReceiveError(notifyError, buffer);
}
status_t status_t
udp_error_reply(net_protocol *protocol, net_buffer *cause, net_error error, udp_error_reply(net_protocol *protocol, net_buffer *cause, net_error error,