httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy mod_proxy.c
Date Wed, 01 Oct 2003 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
  @@ -275,7 +275,7 @@
       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? */
  @@ -351,7 +351,7 @@
       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 */
  
  
  

Mime
View raw message