From e8e6febb746c52354396e4004fccc46ef4dde684 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 20 Oct 2021 10:15:41 -0400 Subject: zebra: Fix code paths that always resolve to true Signed-off-by: Donald Sharp --- zebra/zebra_l2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zebra/zebra_l2.c') diff --git a/zebra/zebra_l2.c b/zebra/zebra_l2.c index 5a0214961..30e74902a 100644 --- a/zebra/zebra_l2.c +++ b/zebra/zebra_l2.c @@ -431,10 +431,10 @@ void zebra_l2if_update_bridge_slave(struct interface *ifp, if (zif->zif_type == ZEBRA_IF_VXLAN && chgflags != ZEBRA_BRIDGE_NO_ACTION) { - if (ZEBRA_BRIDGE_MASTER_MAC_CHANGE) + if (chgflags & ZEBRA_BRIDGE_MASTER_MAC_CHANGE) zebra_vxlan_if_update(ifp, ZEBRA_VXLIF_MASTER_MAC_CHANGE); - if (ZEBRA_BRIDGE_MASTER_UP) + if (chgflags & ZEBRA_BRIDGE_MASTER_UP) zebra_vxlan_if_update(ifp, ZEBRA_VXLIF_MASTER_CHANGE); } old_bridge_ifindex = zif->brslave_info.bridge_ifindex; -- cgit v1.2.3