mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
eigrpd: Fix integer overflow possibility
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
71007eab71
commit
8089cd1062
@ -473,7 +473,7 @@ eigrp_topology_update_node_flags(struct eigrp_prefix_entry *dest)
|
||||
|
||||
for (ALL_LIST_ELEMENTS_RO(dest->entries, node, entry))
|
||||
{
|
||||
if ((entry->distance <= (uint64_t)(dest->distance*eigrp->variance)) &&
|
||||
if (((uint64_t)entry->distance <= (uint64_t)(dest->distance*eigrp->variance)) &&
|
||||
entry->distance != EIGRP_MAX_METRIC) // is successor
|
||||
{
|
||||
entry->flags |= EIGRP_NEIGHBOR_ENTRY_SUCCESSOR_FLAG;
|
||||
|
Loading…
Reference in New Issue
Block a user