mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Babel: Fix bug in iface reconfiguration
A recent change in Babel causes ifaces to disappear after reconfiguration. The patch fixes that. Thanks to Johannes Kimmel for an insightful bugreport.
This commit is contained in:
parent
eb859a3fb0
commit
fcb4dd0c83
@ -1899,7 +1899,7 @@ babel_reconfigure_ifaces(struct babel_proto *p, struct babel_config *cf)
|
|||||||
struct babel_iface *ifa = babel_find_iface(p, iface);
|
struct babel_iface *ifa = babel_find_iface(p, iface);
|
||||||
struct babel_iface_config *ic = (void *) iface_patt_find(&cf->iface_list, iface, NULL);
|
struct babel_iface_config *ic = (void *) iface_patt_find(&cf->iface_list, iface, NULL);
|
||||||
|
|
||||||
if (ic && iface_is_valid(p, iface))
|
if (ic && !iface_is_valid(p, iface))
|
||||||
ic = NULL;
|
ic = NULL;
|
||||||
|
|
||||||
if (ifa && ic)
|
if (ifa && ic)
|
||||||
|
Loading…
Reference in New Issue
Block a user