]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix the parsing of a config file when the first item in either the
authorRyan Bloom <rbb@apache.org>
Thu, 27 Apr 2000 18:54:14 +0000 (18:54 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 27 Apr 2000 18:54:14 +0000 (18:54 +0000)
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

index 2f3fe0fd36e4c6e22bef37e63e1a1efceb0cb79a..d647df52371c35b61b97cf146239ed7b148e3068 100644 (file)
@@ -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;