From: Donald Sharp Date: Tue, 20 Mar 2018 23:16:24 +0000 (-0400) Subject: zebra: Fix comparison to not look at itself X-Git-Tag: frr-5.0-dev~132^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6e94d41057298945a7d6563be126a29be71d21f6;p=matthieu%2Ffrr.git zebra: Fix comparison to not look at itself The nexthop vrf comparison should not be against itself Signed-off-by: Donald Sharp --- 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;