]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: Move route_unlock_node() in ospf_ase_incremental_update()
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 8 Mar 2010 12:58:10 +0000 (13:58 +0100)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:31 +0000 (15:33 +0000)
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Feng Lu <lu.feng@6wind.com>
(cherry picked from commit d5643f5a477e099a3dcae4a707ccb5ca66bfee66)

ospfd/ospf_ase.c

index 8aedc808844734eb3eb35ec0afe028ba52de6232..ffbc89fa5755f88533647b6ee53e2050ea3b14c7 100644 (file)
@@ -821,6 +821,7 @@ ospf_ase_incremental_update (struct ospf *ospf, struct ospf_lsa *lsa)
     {
       rn2 = route_node_get (tmp_old, (struct prefix *) &p);
       rn2->info = rn->info;
+      route_unlock_node (rn);
     }
 
   /* install changes to zebra */
@@ -845,7 +846,6 @@ ospf_ase_incremental_update (struct ospf *ospf, struct ospf_lsa *lsa)
        {
          rn->info = NULL;
          route_unlock_node (rn);
-         route_unlock_node (rn);
        }
     }