diff options
author | Christian Franke <chris@opensourcerouting.org> | 2013-03-20 10:50:09 +0000 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2014-03-21 06:28:48 +0100 |
commit | c78a46c27f6dfdd42fe0800cebabc1e49cb0a4bf (patch) | |
tree | 5d88a885415f3b5e63f7dac5c72dcbcc647a7dfb | |
parent | fd5006896fce2816244c1ef4cabc736279548538 (diff) | |
download | quagga-c78a46c27f6dfdd42fe0800cebabc1e49cb0a4bf.tar.bz2 quagga-c78a46c27f6dfdd42fe0800cebabc1e49cb0a4bf.tar.xz |
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>
-rw-r--r-- | ospf6d/ospf6_asbr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 3605e3f8..c414970b 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -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 |