Merge branch 'master' of github.com:FreeRDP/FreeRDP
This commit is contained in:
commit
94494511cc
@ -623,7 +623,7 @@ HttpResponse* http_response_recv(rdpTls* tls)
|
||||
}
|
||||
|
||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
|
||||
VALGRIND_MAKE_MEM_DEFINED(p, status);
|
||||
VALGRIND_MAKE_MEM_DEFINED(Stream_Pointer(s), status);
|
||||
#endif
|
||||
|
||||
Stream_Seek(s, status);
|
||||
|
@ -115,8 +115,10 @@ BOOL transport_disconnect(rdpTransport* transport)
|
||||
transport->tsg = NULL;
|
||||
}
|
||||
|
||||
if (transport->TcpOut != transport->TcpIn)
|
||||
if (transport->TcpOut && (transport->TcpOut != transport->TcpIn)) {
|
||||
freerdp_tcp_disconnect(transport->TcpOut);
|
||||
freerdp_tcp_free(transport->TcpOut);
|
||||
}
|
||||
|
||||
transport->TcpOut = NULL;
|
||||
|
||||
@ -125,6 +127,9 @@ BOOL transport_disconnect(rdpTransport* transport)
|
||||
tls_free(transport->TsgTls);
|
||||
transport->TsgTls = NULL;
|
||||
}
|
||||
|
||||
freerdp_tcp_disconnect(transport->TcpIn);
|
||||
|
||||
transport->layer = TRANSPORT_LAYER_TCP;
|
||||
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user