[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.
This commit is contained in:
Krisztian Kovacs 2009-06-02 18:09:48 +01:00 committed by Paul Jakma
parent acde4b8613
commit c5a89ff4e6

View 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,