summaryrefslogtreecommitdiff
path: root/proto/babel
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-02-13 16:42:03 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-02-13 16:42:03 +0100
commit5ce7adfcf96787878d60668cf33acf7349a69c0b (patch)
tree2eaec4096245e75d069fedbe7941703771ac9b20 /proto/babel
parent185a0a51f8aed635eecac0cfbd837dd262a8add0 (diff)
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.
Diffstat (limited to 'proto/babel')
-rw-r--r--proto/babel/babel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c
index a60ffe78..88c4711e 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);