Commit 26368f65 authored by Martin Mareš's avatar Martin Mareš

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.
parent ca0edc53
......@@ -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;
......@@ -371,6 +372,9 @@ protos_build(void)
add_tail(&protocol_list, &proto_ospf.n);
add_tail(&protocol_list, &proto_pipe.n);
proto_pool = rp_new(&root_pool, "Protocols");
proto_flush_event = ev_new(proto_pool);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment