rdisc: fix setting netns during consturction of NMRDisc
authorThomas Haller <thaller@redhat.com>
Thu, 17 Mar 2016 15:19:02 +0000 (16:19 +0100)
committerThomas Haller <thaller@redhat.com>
Thu, 17 Mar 2016 15:19:09 +0000 (16:19 +0100)
commit01732b87f6785c634d3a91c1d1e8785b95fca8aa
treea1f3cc5b45b0a61e16d43ac0733f534bc32bcc85
parentd4ca43613eeb0e20c5f9a4369150017ad206587e
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: 3ba944472853d5221ed83c369a77f80ee7305648
src/rdisc/nm-rdisc.c