zebra: Fix comparison to not look at itself

The nexthop vrf comparison should not be against itself

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-03-20 19:16:24 -04:00
parent 4307629f18
commit 6e94d41057

View File

@ -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;