SendQueued() could send empty buffers in case fSendQueue.Get() failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22674 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1236,7 +1236,7 @@ TCPEndpoint::_SendQueued(bool force, uint32 sendWindow)
|
|||||||
|
|
||||||
status_t status = B_OK;
|
status_t status = B_OK;
|
||||||
if (segmentLength > 0)
|
if (segmentLength > 0)
|
||||||
fSendQueue.Get(buffer, fSendNext, segmentLength);
|
status = fSendQueue.Get(buffer, fSendNext, segmentLength);
|
||||||
if (status < B_OK) {
|
if (status < B_OK) {
|
||||||
gBufferModule->free(buffer);
|
gBufferModule->free(buffer);
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
Reference in New Issue
Block a user