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:
Jiri Bohac 2012-03-07 20:12:23 +01:00 committed by Daniel Adolfsson
parent b3e45caf20
commit e827641e40

View File

@ -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;