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:
Donald Sharp 2019-02-11 07:19:14 -05:00
parent b245781a6b
commit 051da24eef
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}
/*

View File

@ -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;
}