summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_topology.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-02-11 13:19:14 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-02-11 13:19:14 +0100
commit051da24eef4f877140f9905b0416e424589484e8 (patch)
tree3bea252de2ad2cf9814c508a8cbb84d57c7b57fa /eigrpd/eigrp_topology.c
parenteigrp: Make the eigrp_interface have a prefix instead of a *prefix (diff)
downloadfrr-051da24eef4f877140f9905b0416e424589484e8.tar.xz
frr-051da24eef4f877140f9905b0416e424589484e8.zip
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>
Diffstat (limited to 'eigrpd/eigrp_topology.c')
-rw-r--r--eigrpd/eigrp_topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_topology.c b/eigrpd/eigrp_topology.c
index 23f5a705e..e861cdb33 100644
--- a/eigrpd/eigrp_topology.c
+++ b/eigrpd/eigrp_topology.c
@@ -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);
}
/*