From: Bradley Nicholes Date: Tue, 2 Apr 2002 16:25:23 +0000 (+0000) Subject: Check for a NULL pointer in the case of the OS address space X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80aea5093bc7be1cb8274d716bda0840a57a062a;p=apache Check for a NULL pointer in the case of the OS address space git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94388 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index b4b069c9db..b3ec8ccb3a 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -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