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-Tag: 2.0.35~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0bb25bd27022b5022747fcba017f909e22a9b1;p=thirdparty%2Fapache%2Fhttpd.git 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 b4b069c9dba..b3ec8ccb3a4 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