summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/rt_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 390c78b7ac..31f35a92ad 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -1333,7 +1333,7 @@ static int build_label_stack(struct mpls_label_stack *nh_label,
int num_labels = 0;
for (int i = 0; nh_label && i < nh_label->num_labels; i++) {
- if (nh_label_type == ZEBRA_LSP_EVPN
+ if (nh_label_type != ZEBRA_LSP_EVPN
&& nh_label->label[i] == MPLS_LABEL_IMPLICIT_NULL)
continue;