Transport add getter, add checks

* Added transport_get_context to get rdpContext in IO callbacks.
* Added WINPR_ASSERT where possible.
* Fixed handle count mismatch in transport_get_event_handles
This commit is contained in:
akallabeth 2021-09-03 08:00:24 +02:00 committed by akallabeth
parent 3afd147bc0
commit 3409f8d3b0
2 changed files with 0 additions and 3 deletions

View File

@ -65,7 +65,6 @@ extern "C"
* <0 -> Abort, an error occured
*/
FREERDP_API SSIZE_T transport_parse_pdu(rdpTransport* transport, wStream* s, BOOL* incomplete);
FREERDP_API rdpContext* transport_get_context(rdpTransport* transport);
FREERDP_API rdpTransport* freerdp_get_transport(rdpContext* context);

View File

@ -137,7 +137,6 @@ static void transport_ssl_cb(SSL* ssl, int where, int ret)
wStream* transport_send_stream_init(rdpTransport* transport, size_t size)
{
wStream* s;
WINPR_ASSERT(transport);
if (!(s = StreamPool_Take(transport->ReceivePool, size)))
@ -1258,7 +1257,6 @@ rdpTransport* transport_new(rdpContext* context)
rdpTransport* transport = (rdpTransport*)calloc(1, sizeof(rdpTransport));
WINPR_ASSERT(context);
if (!transport)
return NULL;