summaryrefslogtreecommitdiff
path: root/src/network/core/tcp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/tcp.cpp')
-rw-r--r--src/network/core/tcp.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp
index ab18f47a8..c779beb96 100644
--- a/src/network/core/tcp.cpp
+++ b/src/network/core/tcp.cpp
@@ -65,11 +65,6 @@ void NetworkTCPSocketHandler::SendPacket(Packet *packet)
packet->PrepareToSend();
- /* Reallocate the packet as in 99+% of the times we send at most 25 bytes and
- * keeping the other 1400+ bytes wastes memory, especially when someone tries
- * to do a denial of service attack! */
- packet->buffer = ReallocT(packet->buffer, packet->size);
-
/* Locate last packet buffered for the client */
p = this->packet_queue;
if (p == nullptr) {