From 3c8e00c6881455fcd22db6b628652874cd1fe4c3 Mon Sep 17 00:00:00 2001 From: Vojtech Vilimek Date: Wed, 20 Jul 2022 16:54:23 +0200 Subject: [PATCH] Refactor fix - proto_reconfigure() update pointers --- nest/proto.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nest/proto.c b/nest/proto.c index 73f9263c..850cd596 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -947,6 +947,10 @@ channel_reconfigure(struct channel *c, struct channel_config *cf) c->in_req.trace_routes = c->out_req.trace_routes = c->debug | c->proto->debug; c->rpki_reload = cf->rpki_reload; + /* update pointers from config to channel and vice versa */ + cf->channel = c; + c->config = cf; + /* Execute channel-specific reconfigure hook */ if (c->class->reconfigure && !c->class->reconfigure(c, cf, &import_changed, &export_changed)) return 0;