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 Sep 2002 02:36:08 GMT
gstein      2002/09/18 19:36:08

  Modified:    modules/dav/main mod_dav.c
  Log:
  If a body arrives with an OPTIONS request, and it contains an
  <options> tag, as defined by RFC 3253, and we don't recognize the
  option as a builtin one, then we pass that off to the versioning hooks
  of the DAV provider for it to process. However, we neglected to check
  whether the provider actually *had* versioning hooks first.
  
  The fix: simply check for versioning hooks before using them.
  
  Problem found by: Ryan Bloom <rbb@apache.org>
  
  Revision  Changes    Path
  1.89      +1 -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.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- mod_dav.c	17 Sep 2002 00:41:28 -0000	1.88
  +++ mod_dav.c	19 Sep 2002 02:36:08 -0000	1.89
  @@ -1758,7 +1758,7 @@
               return dav_handle_err(r, err, NULL);
   
           /* if unrecognized option, pass to versioning provider */
  -        if (!core_option) {
  +        if (!core_option && vsn_hooks != NULL) {
               if ((err = (*vsn_hooks->get_option)(resource, elem, &body))
                   != NULL) {
                   return dav_handle_err(r, err, NULL);
  
  
  

Mime
View raw message