From 515b2a23e7a36a60783dae45d9bdbc9b2ecb447c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 5 Oct 2016 10:58:43 -0400 Subject: [PATCH] zebra: Fix wrong afi used in zebra_static.c When calling a route uninstall in zebra_static.c use the afi passed in and don't hardcode AFI_IP Signed-off-by: Donald Sharp Reviewed-by: Daniel Walton --- zebra/zebra_static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c index 1dc54e171c..dfe196c4b2 100644 --- a/zebra/zebra_static.c +++ b/zebra/zebra_static.c @@ -518,7 +518,7 @@ static_delete_route (afi_t afi, safi_t safi, u_char type, struct prefix *p, } /* Install into rib. */ - static_uninstall_route (AFI_IP, safi, p, si); + static_uninstall_route (afi, safi, p, si); /* Unlink static route from linked list. */ if (si->prev) -- 2.39.5