From 09a1adb43fd539238d964e349743206f2e4bf329 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 7fe1c3202..469d8af08 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(); @@ -3530,7 +3531,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 71c955c33..ef213be60 100644 --- a/srtcore/core.h +++ b/srtcore/core.h @@ -956,7 +956,6 @@ class CUDT CallbackHolder m_cbAcceptHook; CallbackHolder m_cbConnectHook; - // FORWARDER public: static int installAcceptHook(SRTSOCKET lsn, srt_listen_callback_fn* hook, void* opaq);