mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 14:34:25 +00:00
[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:
parent
acde4b8613
commit
c5a89ff4e6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user