diff options
| author | Acee <aceelindem@gmail.com> | 2023-12-19 13:30:38 -0500 |
|---|---|---|
| committer | Acee <aceelindem@gmail.com> | 2023-12-20 09:43:51 -0500 |
| commit | dec87faab61aaec5b5e01d0ac3e165362e370a7e (patch) | |
| tree | 09de808b052e8684065e6e7d3a260045f9fca456 /ospfd/ospf_apiserver.c | |
| parent | b6cb72fccdbe6d17be81a03114341839b1a7a0d4 (diff) | |
ospfd: Fix opaque functab leak and opaque AS cleanup problems
1. Fix ospf opaque LSA function table memory leak.
2. Remove incorrect one-to-one association of OSPF info-per-type
to function table (since there many be many).
3. Fix a problem with opaque AS external cleanup that was exposed
by #2.
4. Fix LSA memory leak in ospf_opaque_type9_lsa_if_cleanup().
Signed-off-by: Acee <aceelindem@gmail.com>
Diffstat (limited to 'ospfd/ospf_apiserver.c')
| -rw-r--r-- | ospfd/ospf_apiserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index 34e59c545b..419113e6d7 100644 --- a/ospfd/ospf_apiserver.c +++ b/ospfd/ospf_apiserver.c @@ -2092,7 +2092,7 @@ void ospf_apiserver_flush_opaque_lsa(struct ospf_apiserver *apiserv, lsa, (void *)¶m, 0); break; case OSPF_OPAQUE_AS_LSA: - LSDB_LOOP (OPAQUE_LINK_LSDB(ospf), rn, lsa) + LSDB_LOOP (OPAQUE_AS_LSDB(ospf), rn, lsa) apiserver_flush_opaque_type_callback(lsa, (void *)¶m, 0); break; |
