]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Babel: Fix accidental bitwise or assignment
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 13 Feb 2018 15:42:03 +0000 (16:42 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 13 Feb 2018 15:42:03 +0000 (16:42 +0100)
Fix an accidental bitwise or assignment that was supposed to be a
comparison.

Thanks to Toke Hoiland-Jorgensen for the patch.

proto/babel/babel.c

index a60ffe7820b460f8a0e5a6cb3a94b18ee4436885..88c4711e5b9436b89f79f0beef17ec35fa685d95 100644 (file)
@@ -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);