From 7898cb4f5ef311589be9c3c9a3aab41d5b16b989 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 18:04:03 -0700 Subject: [PATCH] Fix reference counts for the nexthop cache entries. Signed-off-by: Vivek Venkatraman --- bgpd/bgp_nht.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c index ad9518e55b..051f9c3f18 100644 --- a/bgpd/bgp_nht.c +++ b/bgpd/bgp_nht.c @@ -279,10 +279,13 @@ bgp_parse_nexthop_update (void) prefix2str(&p, buf, INET6_ADDRSTRLEN); zlog_debug("parse nexthop update(%s): rn not found", buf); } + if (rn) + bgp_unlock_node (rn); return; } bnc = rn->info; + bgp_unlock_node (rn); bnc->last_update = bgp_clock(); bnc->change_flags = 0; metric = stream_getl (s); -- 2.39.5