summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ospf6d/ospf6_asbr.c6
-rw-r--r--ospf6d/ospf6_nssa.c11
2 files changed, 11 insertions, 6 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index cd2791fc48..fafe3dc36d 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -1308,7 +1308,8 @@ static void ospf6_asbr_redistribute_set(struct ospf6 *ospf6, int type)
{
ospf6_zebra_redistribute(type, ospf6->vrf_id);
- ospf6_asbr_status_update(ospf6, ++ospf6->redist_count);
+ ++ospf6->redist_count;
+ ospf6_asbr_status_update(ospf6, ospf6->redist_count);
}
static void ospf6_asbr_redistribute_unset(struct ospf6 *ospf6,
@@ -1330,7 +1331,8 @@ static void ospf6_asbr_redistribute_unset(struct ospf6 *ospf6,
}
ospf6_asbr_routemap_unset(red);
- ospf6_asbr_status_update(ospf6, --ospf6->redist_count);
+ --ospf6->redist_count;
+ ospf6_asbr_status_update(ospf6, ospf6->redist_count);
}
/* When an area is unstubified, flood all the external LSAs in the area */
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c
index c2e9b7f28a..c12964ea2f 100644
--- a/ospf6d/ospf6_nssa.c
+++ b/ospf6d/ospf6_nssa.c
@@ -185,12 +185,15 @@ void ospf6_abr_nssa_check_status(struct ospf6 *ospf6)
* when they are not translating.
*/
if (old_state != area->NSSATranslatorState) {
- if (old_state == OSPF6_NSSA_TRANSLATE_DISABLED)
+ if (old_state == OSPF6_NSSA_TRANSLATE_DISABLED) {
+ ++ospf6->redist_count;
ospf6_asbr_status_update(ospf6,
- ++ospf6->redist_count);
- else
+ ospf6->redist_count);
+ } else {
+ --ospf6->redist_count;
ospf6_asbr_status_update(ospf6,
- --ospf6->redist_count);
+ ospf6->redist_count);
+ }
}
}
}