]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ripd] Fix metrix in call to rip_zebra_ipv4_delete
authorKrisztian Kovacs <Kris.Kovacs@MorganStanley.com>
Tue, 2 Jun 2009 17:09:48 +0000 (18:09 +0100)
committerPaul Jakma <paul@quagga.net>
Tue, 2 Jun 2009 17:09:48 +0000 (18:09 +0100)
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

index b6d9240f64734e584c5571526e79292f7259a831..7c5577b4f1c8381ea630354f06e64e3212aa69bf 100644 (file)
@@ -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,