diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-12-29 15:34:48 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-12-29 15:42:12 +0100 |
commit | 74c838a87000ca800e8b3f265340c1317989a04a (patch) | |
tree | 28070bc0efd51ff30b664b52dd10c7b06b57e4ff /proto/ospf/rt.c | |
parent | 9a70c8d6c38155d8abb6d814563b9eefc134e901 (diff) |
Move ID allocator to a separate file and use it also in OSPF
Diffstat (limited to 'proto/ospf/rt.c')
-rw-r--r-- | proto/ospf/rt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 707e376c..21a3e300 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -2005,6 +2005,9 @@ again1: /* Remove unused rt entry, some special entries are persistent */ if (!nf->n.type && !nf->external_rte && !nf->area_net) { + if (nf->lsa_id) + idm_free(&p->idm, nf->lsa_id); + FIB_ITERATE_PUT(&fit); fib_delete(fib, nf); goto again1; |