diff options
author | David Lamparter <equinox@diac24.net> | 2019-07-29 14:04:06 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-08-02 11:29:03 +0200 |
commit | fd9a1d5afe1c8bcfacb808249e3a1658fc944a0a (patch) | |
tree | 0d339bb10da4bbddeb6cebb271fc850a04726415 /ospfd | |
parent | Revert "ospfd: remove default origin max age lsa" (diff) | |
download | frr-fd9a1d5afe1c8bcfacb808249e3a1658fc944a0a.tar.xz frr-fd9a1d5afe1c8bcfacb808249e3a1658fc944a0a.zip |
Revert "ospfd: default route got flushed after lsa refresh timer."
This reverts commit a6b4e1fdedb290e8d86f73b0d7f842f7042b26af.
This fix is wrong too. The zclient->redist & ->mi_redist arrays are
accessed past their size for any external route that is not 0.0.0.0/0.
Also, it is incorrect to check default_information for DEFAULT_ROUTE
since that's "originate always".
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_flood.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_flood.c b/ospfd/ospf_flood.c index 6d1e44996..168dcee44 100644 --- a/ospfd/ospf_flood.c +++ b/ospfd/ospf_flood.c @@ -91,7 +91,7 @@ struct external_info *ospf_external_info_check(struct ospf *ospf, p.prefix = lsa->data->id; p.prefixlen = ip_masklen(al->mask); - for (type = 0; type <= ZEBRA_ROUTE_MAX; type++) { + for (type = 0; type < ZEBRA_ROUTE_MAX; type++) { int redist_on = 0; redist_on = |