From 5bc512aa3a0d3e4ca378fff3316b75c131f17637 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 29 Mar 1999 20:14:33 +0000 Subject: Clarify resource dumps and include them in the main debugging dump. --- nest/proto.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nest/proto.c') diff --git a/nest/proto.c b/nest/proto.c index 450128e3..f230c8ef 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; } -- cgit v1.2.3