forked from Mirror/frr
ospf6d: fix refcounting in ospf6_asbr_lsa_remove
When iterating over a list, also the last node should be unlocked again. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
fd5006896f
commit
c78a46c27f
|
@ -297,6 +297,8 @@ ospf6_asbr_lsa_remove (struct ospf6_lsa *lsa)
|
|||
}
|
||||
ospf6_route_remove (route, ospf6->route_table);
|
||||
}
|
||||
if (route != NULL)
|
||||
ospf6_route_unlock (route);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue