From 6e94d41057298945a7d6563be126a29be71d21f6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 20 Mar 2018 19:16:24 -0400 Subject: [PATCH] zebra: Fix comparison to not look at itself The nexthop vrf comparison should not be against itself Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 858bc417d7..b65f4b8eb5 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -148,7 +148,7 @@ static int static_list_compare(void *arg1, void *arg2) if (ret) return ret; - ret = strcmp(shr2->nhvrf_name, shr2->nhvrf_name); + ret = strcmp(shr1->nhvrf_name, shr2->nhvrf_name); if (ret) return ret; -- 2.39.5