rdpei: Fix possible NULL ptr access

This commit is contained in:
Martin Fleisz 2018-03-06 16:35:56 +01:00
parent 9b4de7903f
commit 2396e37d8a

View File

@ -228,7 +228,7 @@ static void* rdpei_schedule_thread(void* arg)
out:
if (error && rdpei->rdpcontext)
if (error && rdpei && rdpei->rdpcontext)
setChannelError(rdpei->rdpcontext, error,
"rdpei_schedule_thread reported an error");