transport: add a null pointer check.

This commit is contained in:
Vic Lee 2014-05-30 23:34:04 +08:00
parent a4c583c459
commit a3461cef06

View File

@ -711,7 +711,7 @@ int transport_read_layer(rdpTransport* transport, BYTE* data, int bytes)
if (status < 0) if (status < 0)
{ {
if (!BIO_should_retry(transport->frontBio)) if (!transport->frontBio || !BIO_should_retry(transport->frontBio))
{ {
/* something unexpected happened, let's close */ /* something unexpected happened, let's close */
transport->layer = TRANSPORT_LAYER_CLOSED; transport->layer = TRANSPORT_LAYER_CLOSED;