]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't forget changing proto->name to point to name in new configuration
authorMartin Mares <mj@ucw.cz>
Mon, 17 Jan 2000 00:19:58 +0000 (00:19 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 17 Jan 2000 00:19:58 +0000 (00:19 +0000)
(to avoid the name being freed with the old config).

Also remember to add proto_pipe to protocol_list.

nest/proto.c

index e4214ea86414258240b53baf318b2243c2059f86..4c69227967c6c4e176c61cdf71f460a26bd07d5e 100644 (file)
@@ -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;
                    }
@@ -371,6 +372,9 @@ protos_build(void)
 #endif
 #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);