#4740 Only adopted non-SSL socket

This commit is contained in:
Xinyu Hou 2016-09-12 11:13:07 -04:00 committed by Andrew Nelless
parent 07f7baf335
commit 71741da721

View File

@ -164,7 +164,8 @@ ClientListener::handleClientAccepted(const Event&, void* vsocket)
IDataSocket* socket = reinterpret_cast<IDataSocket*>(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