rdpei: Fix possible NULL ptr access
authorMartin Fleisz <martin.fleisz@thincast.com>
Tue, 6 Mar 2018 15:35:56 +0000 (16:35 +0100)
committerMartin Fleisz <martin.fleisz@thincast.com>
Tue, 6 Mar 2018 15:35:56 +0000 (16:35 +0100)
channels/rdpei/client/rdpei_main.c

index 72de9e0..ddf2215 100644 (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");