summaryrefslogtreecommitdiffstats
path: root/nest/proto.c
diff options
context:
space:
mode:
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;
}