summaryrefslogtreecommitdiff
path: root/ospfd/ospf_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_ext.c')
-rw-r--r--ospfd/ospf_ext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_ext.c b/ospfd/ospf_ext.c
index 90a48cc7aa..474f173cbd 100644
--- a/ospfd/ospf_ext.c
+++ b/ospfd/ospf_ext.c
@@ -622,7 +622,8 @@ static void ospf_ext_pref_ism_change(struct ospf_interface *oi, int old_status)
oi->ifp->name);
/* Complete SRDB if the interface belongs to a Prefix */
- ospf_sr_update_prefix(oi->ifp, oi->address);
+ if (OspfEXT.enabled)
+ ospf_sr_update_prefix(oi->ifp, oi->address);
}
}