diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-28 13:25:15 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-28 13:25:15 +0000 |
commit | 352305caae081f833f87d69b6706ba0bb3541bd0 (patch) | |
tree | 0c06656b3f78898599cacd45ff77cf3c6616c405 | |
parent | 9286ea2ea672c0fe6d98ec2b29a2122934d7c6fb (diff) |
Correct bit flag tests to work as intended.
ok renato@
-rw-r--r-- | usr.sbin/eigrpd/rde_dual.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/eigrpd/rde_dual.c b/usr.sbin/eigrpd/rde_dual.c index 3f45b9fbdd8..7994b8d26db 100644 --- a/usr.sbin/eigrpd/rde_dual.c +++ b/usr.sbin/eigrpd/rde_dual.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_dual.c,v 1.18 2016/01/15 12:56:12 renato Exp $ */ +/* $OpenBSD: rde_dual.c,v 1.19 2016/01/28 13:25:14 jsg Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -666,8 +666,8 @@ rt_update_fib(struct rt_node *rn) installed++; - if (route->flags & (F_EIGRP_ROUTE_INSTALLED | - !F_EIGRP_ROUTE_M_CHANGED)) + if ((route->flags & F_EIGRP_ROUTE_INSTALLED) && + !(route->flags & F_EIGRP_ROUTE_M_CHANGED)) continue; rde_send_change_kroute(rn, route); |