mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Added missing NULL pointer checks.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user