summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrisztian Kovacs <Kris.Kovacs@MorganStanley.com>2009-06-02 18:09:48 +0100
committerPaul Jakma <paul@quagga.net>2009-06-02 18:09:48 +0100
commitc5a89ff4e68c49b8841baf3c76290dd78ba383ec (patch)
treebd48c628314d40d870b85f539f4408539aa7853e
parentacde4b861333d799b50d6e8a53214abc0d17ede3 (diff)
[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.
-rw-r--r--ripd/rip_interface.c2
1 files changed, 1 insertions, 1 deletions
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,