]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix a small bug in ap_add_node. We need to set the child's parent pointer
authorRyan Bloom <rbb@apache.org>
Wed, 12 Apr 2000 23:17:51 +0000 (23:17 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 12 Apr 2000 23:17:51 +0000 (23:17 +0000)
correctly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84950 13f79535-47bb-0310-9956-ffa450edef68

server/util_cfgtree.c

index cc82e1c1854230b4068763d88a1cff6c9363fb3e..30756243ae1720ee3d46c320c5869114b73dd181 100644 (file)
@@ -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;
 }