From 31ffb498f86f147948e105aa49f10686265c8685 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 14 Nov 2013 10:09:21 +0100 Subject: [PATCH] Fixed argument checks in --- libfreerdp/core/transport.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfreerdp/core/transport.c b/libfreerdp/core/transport.c index f47cf4b59..1164caf5d 100644 --- a/libfreerdp/core/transport.c +++ b/libfreerdp/core/transport.c @@ -74,6 +74,9 @@ BOOL transport_disconnect(rdpTransport* transport) { BOOL status = TRUE; + if (!transport) + return FALSE; + if (transport->layer == TRANSPORT_LAYER_TLS) status &= tls_disconnect(transport->TlsIn);