From 0ad0153626cf21021f31c73cb7542e086a832ded Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Tue, 15 Oct 2019 20:04:53 +0200 Subject: [PATCH] nic_router: fix broken uplink label on re-config Uplink labels were stored in the uplink objects as reference. As uplink objects may be re-used on re-configuration to avoid unnecessary closing and re-opening of NIC sessions, the label reference could get invalid as the object that stored the label content didn't get re-used. Thus, the label is now copied to the uplink object. Fixes #3529 --- repos/os/src/server/nic_router/uplink.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/os/src/server/nic_router/uplink.h b/repos/os/src/server/nic_router/uplink.h index 0faeaf189..6eefeebc3 100644 --- a/repos/os/src/server/nic_router/uplink.h +++ b/repos/os/src/server/nic_router/uplink.h @@ -104,8 +104,8 @@ class Net::Uplink_interface_base : public Interface_policy { private: - Const_reference _domain_name; - Genode::Session_label const &_label; + Const_reference _domain_name; + Genode::Session_label const _label; /***************************