mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 19:10:31 +01:00
rdisc: fix setting netns during consturction of NMRDisc
We obtain the netns from the platform instance that is passed
in. It's wrong to set the current netns in nm_rdisc_init().
Fixes: 3ba9444728
This commit is contained in:
parent
d4ca43613e
commit
01732b87f6
1 changed files with 0 additions and 4 deletions
|
|
@ -739,10 +739,6 @@ nm_rdisc_init (NMRDisc *rdisc)
|
|||
{
|
||||
NMRDiscPrivate *priv = NM_RDISC_GET_PRIVATE (rdisc);
|
||||
|
||||
rdisc->_netns = nmp_netns_get_current ();
|
||||
if (rdisc->_netns)
|
||||
g_object_ref (rdisc->_netns);
|
||||
|
||||
rdisc->gateways = g_array_new (FALSE, FALSE, sizeof (NMRDiscGateway));
|
||||
rdisc->addresses = g_array_new (FALSE, FALSE, sizeof (NMRDiscAddress));
|
||||
rdisc->routes = g_array_new (FALSE, FALSE, sizeof (NMRDiscRoute));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue