strncmp() function. At least on NetWare this prevents the strncmp() function
from faulting and also brings the code into sync with similar checks for a NULL
file name before calling strncmp() in other areas of this file.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101361
13f79535-47bb-0310-9956-
ffa450edef68
char *url, *p;
int access_status;
- if (!r->proxyreq || strncmp(r->filename, "proxy:", 6) != 0)
+ if (!r->proxyreq || !r->filename || strncmp(r->filename, "proxy:", 6) != 0)
return DECLINED;
/* XXX: Shouldn't we try this before we run the proxy_walk? */
long maxfwd;
/* is this for us? */
- if (!r->proxyreq || strncmp(r->filename, "proxy:", 6) != 0)
+ if (!r->proxyreq || !r->filename || strncmp(r->filename, "proxy:", 6) != 0)
return DECLINED;
/* handle max-forwards / OPTIONS / TRACE */