libfreerdp-core: fix server-side transport_attach crash

This commit is contained in:
Marc-André Moreau 2015-02-13 08:41:47 -05:00
parent 889ccefe0d
commit 3e414f1840

View File

@ -69,7 +69,11 @@ wStream* transport_send_stream_init(rdpTransport* transport, int size)
void transport_attach(rdpTransport* transport, int sockfd)
{
if (!transport->TcpIn)
transport->TcpIn = freerdp_tcp_new(transport->settings);
freerdp_tcp_attach(transport->TcpIn, sockfd);
transport->SplitInputOutput = FALSE;
transport->frontBio = transport->TcpIn->bufferedBio;
}