From: Krisztian Kovacs Date: Tue, 2 Jun 2009 17:09:48 +0000 (+0100) Subject: [ripd] Fix metrix in call to rip_zebra_ipv4_delete X-Git-Tag: frr-2.0-rc1~2338 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c5a89ff4e68c49b8841baf3c76290dd78ba383ec;p=mirror%2Ffrr.git [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. --- diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index b6d9240f64..7c5577b4f1 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,