diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2022-02-27 03:10:38 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2022-02-27 03:10:38 +0100 |
commit | fcb4dd0c831339c4374ace17d8f2ae6ebfeed279 (patch) | |
tree | d76e98bf7752fc121bdf6ade6374cf53d23089c6 /proto/babel/babel.c | |
parent | eb859a3fb063b261fb76304e5b8eca206e7a162a (diff) |
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.
Diffstat (limited to 'proto/babel/babel.c')
-rw-r--r-- | proto/babel/babel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c index e43818f5..174fc9e2 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -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_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; if (ifa && ic) |