]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
core: reset ap_runtime_dir to NULL after AP_SQ_MS_DESTROY_CONFIG.
authorYann Ylavic <ylavic@apache.org>
Sun, 22 Nov 2020 01:06:11 +0000 (01:06 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 22 Nov 2020 01:06:11 +0000 (01:06 +0000)
ap_runtime_dir_relative() might reuse ap_runtime_dir from previously cleared
pconf otherwise.

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

server/core.c

index 8370812d86f76c9957534ee153f5de7ccc5dfd5f..e030f9eae364474303be5c75951a7fce9ae4b027 100644 (file)
@@ -5846,6 +5846,7 @@ static int core_upgrade_storage(request_rec *r)
 
 static void register_hooks(apr_pool_t *p)
 {
+    ap_runtime_dir = NULL;
     errorlog_hash = apr_hash_make(p);
     ap_register_log_hooks(p);
     ap_register_config_hooks(p);