mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-03 02:16:34 +08:00
fixed misused read and write #4313
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "server/ClientProxy.h"
|
||||
#include "server/ClientProxyUnknown.h"
|
||||
#include "synergy/PacketStreamFilter.h"
|
||||
#include "net/TCPSocket.h"
|
||||
#include "net/IDataSocket.h"
|
||||
#include "net/IListenSocket.h"
|
||||
#include "net/ISocketFactory.h"
|
||||
@@ -142,7 +143,8 @@ ClientListener::handleClientConnecting(const Event&, void*)
|
||||
return;
|
||||
}
|
||||
LOG((CLOG_NOTE "accepted client connection"));
|
||||
|
||||
TCPSocket* socket = dynamic_cast<TCPSocket*>(stream);
|
||||
socket->secureAccept();
|
||||
// filter socket messages, including a packetizing filter
|
||||
if (m_streamFilterFactory != NULL) {
|
||||
stream = m_streamFilterFactory->create(stream, true);
|
||||
|
||||
Reference in New Issue
Block a user