ndppd: fix setting the ALLMULTI flag
ifa->allmulti() uses ifa->fd before it is initialized. Signed-off-by: Jiri Bohac <jbohac@suse.cz> Signed-off-by: Daniel Adolfsson <daniel@priv.nu>
This commit is contained in:
parent
b3e45caf20
commit
e827641e40
@ -162,13 +162,13 @@ ptr<iface> iface::open_pfd(const std::string& name)
|
|||||||
return ptr<iface>();
|
return ptr<iface>();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Eh. Allmulti.
|
|
||||||
ifa->_prev_allmulti = ifa->allmulti(1);
|
|
||||||
|
|
||||||
// Set up an instance of 'iface'.
|
// Set up an instance of 'iface'.
|
||||||
|
|
||||||
ifa->_pfd = fd;
|
ifa->_pfd = fd;
|
||||||
|
|
||||||
|
// Eh. Allmulti.
|
||||||
|
ifa->_prev_allmulti = ifa->allmulti(1);
|
||||||
|
|
||||||
_map_dirty = true;
|
_map_dirty = true;
|
||||||
|
|
||||||
return ifa;
|
return ifa;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user