Merge pull request #905 from mfleisz/master

libfreerdp-core: fix server crash when accepting NLA connections
This commit is contained in:
Marc-André Moreau 2013-01-16 07:11:00 -08:00
commit fbefad93d5
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ BOOL transport_accept_nla(rdpTransport* transport)
if (transport->TlsIn == NULL)
transport->TlsIn = tls_new(transport->settings);
if (transport->TlsOut == NULL)
transport->TlsOut = transport->TlsIn;
transport->layer = TRANSPORT_LAYER_TLS;
transport->TlsIn->sockfd = transport->TcpIn->sockfd;