From 3b7f84008c94465bb844f167dd1057caf4e518df Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 26 Sep 2017 15:27:01 -0700 Subject: [PATCH] tcp: Perform copy-on-write packet copy into Tx buffer item --- src/internet/model/tcp-tx-buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internet/model/tcp-tx-buffer.cc b/src/internet/model/tcp-tx-buffer.cc index ca9403903..fe723fed1 100644 --- a/src/internet/model/tcp-tx-buffer.cc +++ b/src/internet/model/tcp-tx-buffer.cc @@ -193,7 +193,7 @@ TcpTxBuffer::Add (Ptr p) if (p->GetSize () > 0) { TcpTxItem *item = new TcpTxItem (); - item->m_packet = p; + item->m_packet = p->Copy (); m_appList.insert (m_appList.end (), item); m_size += p->GetSize ();