]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: ospf_ls_upd_send() add missing unlock.
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 8 Mar 2010 12:58:13 +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 4eaecdc403461fe59026e1ce3a217526d75eca25)

ospfd/ospf_packet.c

index 4ec4509056b2abeb5e8817a5ef1844614961d306..2126ea3c9365b92dd76f93e3f7cd80f9e7a302ee 100644 (file)
@@ -3879,6 +3879,8 @@ ospf_ls_upd_send (struct ospf_neighbor *nbr, struct list *update, int flag)
 
   if (rn->info == NULL)
     rn->info = list_new ();
+  else
+    route_unlock_node (rn);
 
   for (ALL_LIST_ELEMENTS_RO (update, node, lsa))
     listnode_add (rn->info, ospf_lsa_lock (lsa)); /* oi->ls_upd_queue */