summaryrefslogtreecommitdiffstats
path: root/server/util_cfgtree.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-04-27 20:54:14 +0200
committerRyan Bloom <rbb@apache.org>2000-04-27 20:54:14 +0200
commitf3efd8ef526ba80b57b93f43f1448d652d9bf7ec (patch)
tree0eab861c7ce3bde77aa489220ecc53ba39c3df5b /server/util_cfgtree.c
parentInstall the support binaries. (diff)
downloadapache2-f3efd8ef526ba80b57b93f43f1448d652d9bf7ec.tar.xz
apache2-f3efd8ef526ba80b57b93f43f1448d652d9bf7ec.zip
Fix the parsing of a config file when the first item in either the
config file or a container is a container. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util_cfgtree.c')
-rw-r--r--server/util_cfgtree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/util_cfgtree.c b/server/util_cfgtree.c
index 2f3fe0fd36..d647df5237 100644
--- a/server/util_cfgtree.c
+++ b/server/util_cfgtree.c
@@ -69,6 +69,11 @@ ap_directive_t *ap_add_node(ap_directive_t **parent, ap_directive_t *current,
(*parent)->first_child = toadd;
toadd->parent = *parent;
}
+ if (child) {
+ /* First item in config file or container is a container */
+ *parent = toadd;
+ return NULL;
+ }
return toadd;
}
current->next = toadd;