summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-29 22:14:33 +0200
committerMartin Mares <mj@ucw.cz>1999-03-29 22:14:33 +0200
commit5bc512aa3a0d3e4ca378fff3316b75c131f17637 (patch)
tree1f7d48bab9c94313b58845412472e06b21c7f712 /nest/proto.c
parent3f2a21fd348e49cf3ca98750b14e14dd04b3209b (diff)
downloadbird-5bc512aa3a0d3e4ca378fff3316b75c131f17637.tar
bird-5bc512aa3a0d3e4ca378fff3316b75c131f17637.zip
Clarify resource dumps and include them in the main debugging dump.
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 450128e..f230c8e 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -95,9 +95,8 @@ proto_new(struct proto_config *c, unsigned size)
static void
proto_init_instance(struct proto *p)
{
- struct proto_config *c = p->cf;
-
- p->pool = rp_new(proto_pool, c->name);
+ /* Here we cannot use p->cf->name since it won't survive reconfiguration */
+ p->pool = rp_new(proto_pool, p->proto->name);
p->attn = ev_new(p->pool);
p->attn->data = p;
}