Skip to content

Commit

Permalink
TcpSinkApp: bugfix: fixed packet ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoltanBojthe committed Oct 18, 2023
1 parent 036740e commit 2386161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/inet/applications/tcpapp/TcpSinkApp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ void TcpSinkAppThread::established()
void TcpSinkAppThread::dataArrived(Packet *pk, bool urgent)
{
Enter_Method("dataArrived");
take(pk);
long packetLength = pk->getByteLength();
bytesRcvd += packetLength;
sinkAppModule->bytesRcvd += packetLength;
Expand Down

0 comments on commit 2386161

Please sign in to comment.