mirror of https://github.com/FreeRDP/FreeRDP
drive: Fix possible NULL ptr access
This commit is contained in:
parent
900aa94796
commit
9b4de7903f
|
@ -788,7 +788,7 @@ static void* drive_thread_func(void* arg)
|
|||
}
|
||||
|
||||
fail:
|
||||
if (error && drive->rdpcontext)
|
||||
if (error && drive && drive->rdpcontext)
|
||||
setChannelError(drive->rdpcontext, error, "drive_thread_func reported an error");
|
||||
|
||||
ExitThread((DWORD)error);
|
||||
|
|
Loading…
Reference in New Issue