From 352305caae081f833f87d69b6706ba0bb3541bd0 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 28 Jan 2016 13:25:15 +0000 Subject: Correct bit flag tests to work as intended. ok renato@ --- usr.sbin/eigrpd/rde_dual.c | 6 +++--- 1 file 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 @@ -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); -- cgit v1.2.3