summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_l2.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-10-20 16:15:41 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-10-20 16:37:32 +0200
commite8e6febb746c52354396e4004fccc46ef4dde684 (patch)
treeb39997dd575a3640101f554f849f0e42f6193d49 /zebra/zebra_l2.c
parentMerge pull request #9766 from opensourcerouting/typesafe-member-nhrp-zap (diff)
downloadfrr-e8e6febb746c52354396e4004fccc46ef4dde684.tar.xz
frr-e8e6febb746c52354396e4004fccc46ef4dde684.zip
zebra: Fix code paths that always resolve to true
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_l2.c')
-rw-r--r--zebra/zebra_l2.c4
1 files changed, 2 insertions, 2 deletions
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;