transport: add a null pointer check.
This commit is contained in:
parent
a4c583c459
commit
a3461cef06
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user