mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
transport: add a null pointer check.
This commit is contained in:
@@ -711,7 +711,7 @@ int transport_read_layer(rdpTransport* transport, BYTE* data, int bytes)
|
||||
|
||||
if (status < 0)
|
||||
{
|
||||
if (!BIO_should_retry(transport->frontBio))
|
||||
if (!transport->frontBio || !BIO_should_retry(transport->frontBio))
|
||||
{
|
||||
/* something unexpected happened, let's close */
|
||||
transport->layer = TRANSPORT_LAYER_CLOSED;
|
||||
|
||||
Reference in New Issue
Block a user