]> granicus.if.org Git - apache/commitdiff
Check for a NULL pointer in the case of the OS address space
authorBradley Nicholes <bnicholes@apache.org>
Tue, 2 Apr 2002 16:25:23 +0000 (16:25 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 2 Apr 2002 16:25:23 +0000 (16:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94388 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/netware/mpm_netware.c

index b4b069c9dba703b73effb10f447318133917e5d6..b3ec8ccb3a40bd5e75bc52febd47f185fb643060 100644 (file)
@@ -1096,10 +1096,12 @@ static int CommandLineInterpreter(scr_t screenID, const char *commandLine)
 
         /* If we got an instance id but it doesn't match this 
             instance of the nlm, pass it on. */
-        pID = &pID[2];
-        while (*pID && (*pID == ' '))
-            pID++;
-        if (*pID && ap_my_addrspace && strnicmp(pID, ap_my_addrspace, strlen(ap_my_addrspace)))
+        if (pID) {
+            pID = &pID[2];
+            while (*pID && (*pID == ' '))
+                pID++;
+        }
+        if (pID && ap_my_addrspace && strnicmp(pID, ap_my_addrspace, strlen(ap_my_addrspace)))
             return NOTMYCOMMAND;
 
         /* If we have determined that this command belongs to this