[CSRDLL]: Avoid a potential null pointer dereference.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 1 Jul 2014 17:17:43 +0000 (17:17 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 1 Jul 2014 17:17:43 +0000 (17:17 +0000)
svn path=/trunk/; revision=63681

reactos/dll/ntdll/csr/connect.c

index cef68d9..3a4672e 100644 (file)
@@ -255,7 +255,7 @@ CsrClientConnectToServer(IN PWSTR ObjectDirectory,
         CsrPortHeap = RtlGetProcessHeap();
 
         /* Tell the caller we're inside the server */
-        *ServerToServerCall = InsideCsrProcess;
+        if (ServerToServerCall) *ServerToServerCall = InsideCsrProcess;
         return STATUS_SUCCESS;
     }