From: Cliff Woolley Date: Mon, 25 Mar 2002 07:20:45 +0000 (+0000) Subject: Fix a segfault because ap_method_registry_init() was never called unless X-Git-Tag: 2.0.34~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=388bb6d20f78f7ec500d3c0f95fbfcb70fe3fca7;p=thirdparty%2Fapache%2Fhttpd.git Fix a segfault because ap_method_registry_init() was never called unless ap_method_register() was called [ie, unless mod_dav was installed] Reported by: Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94156 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 87a9a792618..da9b045b5d1 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -335,6 +335,7 @@ static void register_hooks(apr_pool_t *p) ap_byterange_filter_handle = ap_register_output_filter("BYTERANGE", ap_byterange_filter, AP_FTYPE_PROTOCOL); + ap_method_registry_init(p); } module AP_MODULE_DECLARE_DATA http_module = {