From: Greg Stein Date: Thu, 19 Sep 2002 02:36:08 +0000 (+0000) Subject: If a body arrives with an OPTIONS request, and it contains an X-Git-Tag: WROWE_2_0_43_PRE1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41b61ff59f8e667188055382036da1417a7e002b;p=apache If a body arrives with an OPTIONS request, and it contains an 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96903 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index 1ebfe9f031..24f63e351f 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -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);