From c5a89ff4e68c49b8841baf3c76290dd78ba383ec Mon Sep 17 00:00:00 2001 From: Krisztian Kovacs Date: Tue, 2 Jun 2009 18:09:48 +0100 Subject: [ripd] Fix metrix in call to rip_zebra_ipv4_delete Fix a potential problem (most probably not triggering a real problem, at least on Linux). When an interface goes down and ripd tries to delete the corresponding route it errorneously passes the interface's index instead of the metric to zebra. --- ripd/rip_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index b6d9240f..7c5577b4 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -591,7 +591,7 @@ rip_if_down(struct interface *ifp) { rip_zebra_ipv4_delete ((struct prefix_ipv4 *) &rp->p, &rinfo->nexthop, - rinfo->ifindex); + rinfo->metric); rip_redistribute_delete (rinfo->type,rinfo->sub_type, (struct prefix_ipv4 *)&rp->p, -- cgit v1.2.1