From: Ondrej Zajicek (work) Date: Tue, 13 Feb 2018 15:42:03 +0000 (+0100) Subject: Babel: Fix accidental bitwise or assignment X-Git-Tag: v2.0.2~2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ce7adfcf96787878d60668cf33acf7349a69c0b;p=thirdparty%2Fbird.git Babel: Fix accidental bitwise or assignment Fix an accidental bitwise or assignment that was supposed to be a comparison. Thanks to Toke Hoiland-Jorgensen for the patch. --- diff --git a/proto/babel/babel.c b/proto/babel/babel.c index a60ffe782..88c4711e5 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -2145,7 +2145,7 @@ babel_rt_notify(struct proto *P, struct channel *c UNUSED, struct network *net, e = babel_get_entry(p, net->n.addr); /* Activate triggered updates */ - if ((e->valid |= BABEL_ENTRY_VALID) || + if ((e->valid != BABEL_ENTRY_VALID) || (e->router_id != rt_router_id)) { babel_trigger_update(p);