* ospf_lsa.c: fix up some places where an NSSA specific define,
(OSPF_LSA_LOCAL_XLT) was referenced in if statements without being
ifdef'ed by HAVE_NSSA.
* Translated LSAs should not be registered, but refreshed upon
* refresh of the Type-7
*/
+#ifdef HAVE_NSSA
if ( !CHECK_FLAG (new->flags, OSPF_LSA_LOCAL_XLT) )
+#endif
ospf_refresher_register_lsa (ospf, new);
/* Debug logging. */
#endif /* HAVE_NSSA */
/* Register self-originated LSA to refresh queue.
- * Leave Translated LSAs alone
+ * Leave Translated LSAs alone if NSSA is enabled
*/
- if (IS_LSA_SELF (new) && !CHECK_FLAG (new->flags, OSPF_LSA_LOCAL_XLT ) )
+ if (IS_LSA_SELF (new)
+#ifdef HAVE_NSSA
+ && !CHECK_FLAG (new->flags, OSPF_LSA_LOCAL_XLT )
+#endif /* HAVE_NSSA */
+ )
+
ospf_refresher_register_lsa (ospf, new);
return new;