0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

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.
This commit is contained in:
Ondrej Zajicek (work) 2018-02-13 16:42:03 +01:00
parent 185a0a51f8
commit 5ce7adfcf9

View 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); e = babel_get_entry(p, net->n.addr);
/* Activate triggered updates */ /* Activate triggered updates */
if ((e->valid |= BABEL_ENTRY_VALID) || if ((e->valid != BABEL_ENTRY_VALID) ||
(e->router_id != rt_router_id)) (e->router_id != rt_router_id))
{ {
babel_trigger_update(p); babel_trigger_update(p);