diff options
author | Ryan Bloom <rbb@apache.org> | 2000-04-13 01:17:51 +0200 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-04-13 01:17:51 +0200 |
commit | 6b4f8cc57239a86d24ee24218bddecf3ee6b3185 (patch) | |
tree | dc3883dff45f26003d05830dd5757df68d541664 /server | |
parent | First step to getting configuration modules working. This step creates (diff) | |
download | apache2-6b4f8cc57239a86d24ee24218bddecf3ee6b3185.tar.xz apache2-6b4f8cc57239a86d24ee24218bddecf3ee6b3185.zip |
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
Diffstat (limited to '')
-rw-r--r-- | server/util_cfgtree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/util_cfgtree.c b/server/util_cfgtree.c index cc82e1c185..30756243ae 100644 --- a/server/util_cfgtree.c +++ b/server/util_cfgtree.c @@ -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; } |