From f3efd8ef526ba80b57b93f43f1448d652d9bf7ec Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Thu, 27 Apr 2000 18:54:14 +0000 Subject: 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 --- server/util_cfgtree.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/util_cfgtree.c') 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; -- cgit v1.2.3