Commit 89265bc6 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

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
parent 4ef5bebd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;