From 71741da721955cac2f2648f4d1bbb114c1a7c3cb Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Mon, 12 Sep 2016 11:13:07 -0400 Subject: [PATCH] #4740 Only adopted non-SSL socket --- src/lib/server/ClientListener.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/server/ClientListener.cpp b/src/lib/server/ClientListener.cpp index 78a62901..a34ccf68 100644 --- a/src/lib/server/ClientListener.cpp +++ b/src/lib/server/ClientListener.cpp @@ -164,7 +164,8 @@ ClientListener::handleClientAccepted(const Event&, void* vsocket) IDataSocket* socket = reinterpret_cast(vsocket); // filter socket messages, including a packetizing filter - synergy::IStream* stream = new PacketStreamFilter(m_events, socket); + bool adopt = !m_useSecureNetwork; + synergy::IStream* stream = new PacketStreamFilter(m_events, socket, adopt); assert(m_server != NULL); // create proxy for unknown client