1 Oct 2003 19:10
cvs commit: httpd-2.0/modules/proxy mod_proxy.c
<bnicholes <at> apache.org>
2003-10-01 17:10:48 GMT
2003-10-01 17:10:48 GMT
bnicholes 2003/10/01 10:10:48
Modified: modules/proxy Tag: APACHE_2_0_BRANCH mod_proxy.c
Log:
Check to make sure that there is a file name before sending it to strncmp(). This
fixes a page fault on NetWare when using mod_proxy with mod_cache.
Revision Changes Path
No revision
No revision
1.90.2.3 +2 -2 httpd-2.0/modules/proxy/mod_proxy.c
Index: mod_proxy.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.c,v
retrieving revision 1.90.2.2
retrieving revision 1.90.2.3
diff -u -r1.90.2.2 -r1.90.2.3
--- mod_proxy.c 22 Feb 2003 18:38:13 -0000 1.90.2.2
+++ mod_proxy.c 1 Oct 2003 17:10:48 -0000 1.90.2.3
<at> <at> -275,7 +275,7 <at> <at>
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? */
<at> <at> -351,7 +351,7 <at> <at>
(Continue reading)
RSS Feed