mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 16:57:43 +00:00
eigrpd: Correctly handle the ref-count in a couple of spots
The ref count for the eigrp topology table was incorrect in a couple of spots. Let's clean it up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
b245781a6b
commit
051da24eef
@ -141,10 +141,10 @@ void eigrp_prefix_entry_add(struct route_table *topology,
|
||||
__PRETTY_FUNCTION__,
|
||||
prefix2str(pe->destination, buf, sizeof(buf)));
|
||||
}
|
||||
route_unlock_node(rn);
|
||||
}
|
||||
|
||||
rn->info = pe;
|
||||
route_lock_node(rn);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -559,6 +559,7 @@ DEFPY (show_ip_eigrp_topology,
|
||||
tn = rn->info;
|
||||
eigrp_vty_display_prefix_entry(vty, eigrp, tn, argc == 5);
|
||||
|
||||
route_unlock_node(rn);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user