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
This commit is contained in:
Martin Stein 2019-10-15 20:04:53 +02:00 committed by Christian Helmuth
parent cd37bff514
commit 0ad0153626
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ class Net::Uplink_interface_base : public Interface_policy
{
private:
Const_reference<Domain_name> _domain_name;
Genode::Session_label const &_label;
Const_reference<Domain_name> _domain_name;
Genode::Session_label const _label;
/***************************