]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Fix wrong afi used in zebra_static.c
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 5 Oct 2016 14:58:43 +0000 (10:58 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 5 Oct 2016 15:00:38 +0000 (11:00 -0400)
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 <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
zebra/zebra_static.c

index 1dc54e171ccbc9d3e024567b2181fbf32588d591..dfe196c4b2f192a4872730cbf127179bcdc09e18 100644 (file)
@@ -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)