]> granicus.if.org Git - apache/commitdiff
* modules/proxy/mod_proxy_http.c (ap_proxy_http_register_hook): Fix
authorJoe Orton <jorton@apache.org>
Thu, 11 Oct 2007 13:02:35 +0000 (13:02 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 11 Oct 2007 13:02:35 +0000 (13:02 +0000)
  apr_pool_cleanup_register() invocation added in r583202, which was
  causing every apr_proc_create() call to segfault.

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

modules/proxy/mod_proxy_http.c

index 8e856954dd633169bc1953e82f2a45461384d9f1..82c2035cfdf5ef7ff9e5eb2a1085305442b436e3 100644 (file)
@@ -1881,7 +1881,7 @@ static void ap_proxy_http_register_hook(apr_pool_t *p)
     proxy_hook_scheme_handler(proxy_http_handler, NULL, NULL, APR_HOOK_FIRST);
     proxy_hook_canon_handler(proxy_http_canon, NULL, NULL, APR_HOOK_FIRST);
     warn_rx = ap_pregcomp(p, "[0-9]{3}[ \t]+[^ \t]+[ \t]+\"[^\"]*\"([ \t]+\"([^\"]+)\")?", 0);
-    apr_pool_cleanup_register(p, p, warn_rx_free, NULL);
+    apr_pool_cleanup_register(p, p, warn_rx_free, apr_pool_cleanup_null);
 }
 
 module AP_MODULE_DECLARE_DATA proxy_http_module = {