]> granicus.if.org Git - apache/commitdiff
If a body arrives with an OPTIONS request, and it contains an
authorGreg Stein <gstein@apache.org>
Thu, 19 Sep 2002 02:36:08 +0000 (02:36 +0000)
committerGreg Stein <gstein@apache.org>
Thu, 19 Sep 2002 02:36:08 +0000 (02:36 +0000)
<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>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96903 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/mod_dav.c

index 1ebfe9f03117a67e18748b63c15ece8350ab3888..24f63e351fdf05d34a4f06716f525060e7b52a7e 100644 (file)
@@ -1758,7 +1758,7 @@ static int dav_method_options(request_rec *r)
             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);