]> git.puffer.fish Git - mirror/frr.git/commitdiff
Fix reference counts for the nexthop cache entries.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:03 +0000 (18:04 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 20 May 2015 01:04:03 +0000 (18:04 -0700)
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
bgpd/bgp_nht.c

index ad9518e55b2ad3d8e9581913620d22b259cae060..051f9c3f18fc7c740a0cb7853669441d7bc8dcad 100644 (file)
@@ -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);