From: Ryan Bloom Date: Wed, 12 Apr 2000 23:17:51 +0000 (+0000) Subject: Fix a small bug in ap_add_node. We need to set the child's parent pointer X-Git-Tag: apache-doc-split-01~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4f8cc57239a86d24ee24218bddecf3ee6b3185;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/util_cfgtree.c b/server/util_cfgtree.c index cc82e1c1854..30756243ae1 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; }