Skip to content

Commit

Permalink
[core] Initialize ISN and PeerISN in CUDT.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 14, 2023
1 parent 54ef85f commit f9e36db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ void srt::CUDT::construct()
// m_cbPacketArrival.set(this, &CUDT::defaultPacketArrival);
}

srt::CUDT::CUDT(CUDTSocket* parent): m_parent(parent)
srt::CUDT::CUDT(CUDTSocket* parent)
: m_parent(parent)
, m_iISN(-1)
, m_iPeerISN(-1)
{
construct();

Expand All @@ -328,7 +331,10 @@ srt::CUDT::CUDT(CUDTSocket* parent): m_parent(parent)

}

srt::CUDT::CUDT(CUDTSocket* parent, const CUDT& ancestor): m_parent(parent)
srt::CUDT::CUDT(CUDTSocket* parent, const CUDT& ancestor)
: m_parent(parent)
, m_iISN(-1)
, m_iPeerISN(-1)
{
construct();

Expand Down

0 comments on commit f9e36db

Please sign in to comment.