ospfd: Move route_unlock_node() in ospf_ase_incremental_update()
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Acked-by: Feng Lu <lu.feng@6wind.com>
diff --git a/ospfd/ospf_ase.c b/ospfd/ospf_ase.c
index 04240c1..027e49f 100644
--- a/ospfd/ospf_ase.c
+++ b/ospfd/ospf_ase.c
@@ -821,6 +821,7 @@
{
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 @@
{
rn->info = NULL;
route_unlock_node (rn);
- route_unlock_node (rn);
}
}