Added missing NULL pointer checks.
This commit is contained in:
parent
7ebf4879f0
commit
fda56c0dbb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user