]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix table leak introduced in labeled unicast (Issue #473) 527/head
authorLou Berger <lberger@labn.net>
Mon, 15 May 2017 00:24:25 +0000 (20:24 -0400)
committerLou Berger <lberger@labn.net>
Mon, 15 May 2017 00:26:07 +0000 (20:26 -0400)
      Fix tested for vpn and encap ribs/safi.  Labeled unicast
      may still leak as not tested.

Signed-off-by: Lou Berger <lberger@labn.net>
bgpd/bgp_route.c

index 2142719f49a68c6f2775ff12558db1f5430fd60d..23fc4f8c361233b67b452ce47749bd05bd3d90c6 100644 (file)
@@ -1941,9 +1941,9 @@ bgp_process_main (struct work_queue *wq, void *data)
    * Right now, since we only deal with per-prefix labels, it is not necessary
    * to do this upon changes to best path except of the label index changes.
    */
-  bgp_table_lock (bgp_node_table (rn));
   if (safi == SAFI_LABELED_UNICAST)
     {
+      bgp_table_lock (bgp_node_table (rn));
       if (new_select)
         {
           if (!old_select ||