summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_nssa.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_nssa.c')
-rw-r--r--ospf6d/ospf6_nssa.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c
index 84f014d680..cd1be3a5b7 100644
--- a/ospf6d/ospf6_nssa.c
+++ b/ospf6d/ospf6_nssa.c
@@ -188,12 +188,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);
+ }
}
}
}