httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/main mod_dav.c
Date Thu, 19 Jun 2003 21:21:15 GMT
gstein      2003/06/19 14:21:15

  Modified:    modules/dav/main mod_dav.c
  Log:
  Fix a crasher introduced on June 3.
  
  * mod_dav.c (dav_method_propfind): the PROPFIND request might not have
      a body. Therefore, we cannot dereference 'doc' unconditionally.
      Test it to decide what to pass on to dav_begin_multistatus().
  
  Submitted by: Ben Collins-Sussman <sussman@collab.net>,
                David Waite <mass@akuma.org>
  
  Revision  Changes    Path
  1.95      +2 -1      httpd-2.0/modules/dav/main/mod_dav.c
  
  Index: mod_dav.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/mod_dav.c,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- mod_dav.c	3 Jun 2003 22:09:24 -0000	1.94
  +++ mod_dav.c	19 Jun 2003 21:21:15 -0000	1.95
  @@ -2049,7 +2049,8 @@
          404. Note that <response> elements will override these ns0,
          ns1, etc, but NOT within the <response> scope for the
          badprops. */
  -    dav_begin_multistatus(ctx.bb, r, HTTP_MULTI_STATUS, doc->namespaces);
  +    dav_begin_multistatus(ctx.bb, r, HTTP_MULTI_STATUS,
  +                          doc ? doc->namespaces : NULL);
   
       /* Have the provider walk the resource. */
       err = (*resource->hooks->walk)(&ctx.w, depth, &multi_status);
  
  
  

Mime
View raw message