Commit dd5c40b0 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

Fix a small bug in ap_add_node. We need to set the child's parent pointer

correctly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84950 13f79535-47bb-0310-9956-ffa450edef68
parent 6dd932f6
Loading
Loading
Loading
Loading
+2 −1
Changes for server/util_cfgtree.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ ap_directive_t *ap_add_node(ap_directive_t **parent, ap_directive_t *current,
        }
        else {
            (*parent)->first_child = toadd;
            toadd->parent = *parent;
        }
        return toadd;
    }
@@ -83,7 +84,7 @@ ap_directive_t *ap_add_node(ap_directive_t **parent, ap_directive_t *current,
        *parent = toadd;
        return NULL;
    }
    return conf_tree;
    return toadd;
}