summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-17 01:19:58 +0100
committerMartin Mares <mj@ucw.cz>2000-01-17 01:19:58 +0100
commit26368f656c2398acc4d3ed55879d2f371cecf75b (patch)
tree36a3b76c5d001733e87db6aa7a42c4e01e10d775
parentca0edc53956ecd493055ba1625754ee75d58a9c7 (diff)
downloadbird-26368f656c2398acc4d3ed55879d2f371cecf75b.tar
bird-26368f656c2398acc4d3ed55879d2f371cecf75b.zip
Don't forget changing proto->name to point to name in new configuration
(to avoid the name being freed with the old config). Also remember to add proto_pipe to protocol_list.
-rw-r--r--nest/proto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index e4214ea..4c69227 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -248,6 +248,7 @@ protos_commit(struct config *new, struct config *old, int force_reconfig)
{
DBG("\t%s: same\n", oc->name);
p->cf = nc;
+ p->name = nc->name;
nc->proto = p;
continue;
}
@@ -372,6 +373,9 @@ protos_build(void)
#ifdef CONFIG_OSPF
add_tail(&protocol_list, &proto_ospf.n);
#endif
+#ifdef CONFIG_PIPE
+ add_tail(&protocol_list, &proto_pipe.n);
+#endif
proto_pool = rp_new(&root_pool, "Protocols");
proto_flush_event = ev_new(proto_pool);
proto_flush_event->hook = proto_flush_all;