Added missing NULL pointer checks.

This commit is contained in:
Armin Novak 2015-07-30 08:18:57 +02:00
parent 7ebf4879f0
commit fda56c0dbb

View File

@ -386,6 +386,8 @@ BOOL freerdp_reconnect(freerdp* instance)
BOOL freerdp_shall_disconnect(freerdp* instance)
{
if (!instance || !instance->context || !instance->context->rdp)
return FALSE;
return instance->context->rdp->disconnect;
}