]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: fix summary-address deletion 10127/head
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 25 Nov 2021 18:17:58 +0000 (21:17 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 25 Nov 2021 18:17:58 +0000 (21:17 +0300)
commitfa42b7d80f0348d4216909c2e94068a15bf6774b
tree002273cb292d8a358c1879f2ada90036cfa64140
parent6e5532187f9e11d10f364fdac9f8e4efb16ff9be
ospfd: fix summary-address deletion

When the summary-address is deleted, `ospf_aggr_handle_external_info` is
called for each aggregated route for the cleanup. It needs to find the
corresponding OSPF instance and it does it using the `ei->instance`
which is totally wrong, because it's the instance from which the route
is redistributed, not the local OSPF instance. A pointer to the correct
OSPF instance is already stored in the external_info structure.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospfd/ospf_asbr.c