From 79ab5f57099ecbee62b836c578dfd647be8cefae Mon Sep 17 00:00:00 2001 From: yomnes0 <127947185+yomnes0@users.noreply.github.com> Date: Wed, 20 Dec 2023 10:29:42 +0100 Subject: [PATCH] [core] Fix extra ACK sent after a connection is established (#2832) (uninitialized variable). --- srtcore/core.cpp | 2 +- srtcore/core.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/srtcore/core.cpp b/srtcore/core.cpp index 873b6ad6f..0f3a19f6d 100644 --- a/srtcore/core.cpp +++ b/srtcore/core.cpp @@ -297,6 +297,7 @@ void srt::CUDT::construct() m_bTsbPdAckWakeup = false; m_bGroupTsbPd = false; m_bPeerTLPktDrop = false; + m_bBufferWasFull = false; // Initilize mutex and condition variables. initSynch(); @@ -3555,7 +3556,6 @@ void srt::CUDT::startConnect(const sockaddr_any& serv_addr, int32_t forced_isn) m_iISN = m_ConnReq.m_iISN = forced_isn; setInitialSndSeq(m_iISN); - // Inform the server my configurations. CPacket reqpkt; reqpkt.setControl(UMSG_HANDSHAKE); diff --git a/srtcore/core.h b/srtcore/core.h index 1acc6b693..5b4b27aaf 100644 --- a/srtcore/core.h +++ b/srtcore/core.h @@ -979,7 +979,6 @@ class CUDT CallbackHolder m_cbAcceptHook; CallbackHolder m_cbConnectHook; - // FORWARDER public: static int installAcceptHook(SRTSOCKET lsn, srt_listen_callback_fn* hook, void* opaq);