From 41b61ff59f8e667188055382036da1417a7e002b Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Thu, 19 Sep 2002 02:36:08 +0000 Subject: [PATCH] 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 --- modules/dav/main/mod_dav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0