summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ospfd/ospf_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 1448c7d8..6d58b4ea 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -191,6 +191,11 @@ main (int argc, char **argv)
/* Set umask before anything for security */
umask (0027);
+#ifdef SUPPORT_OSPF_API
+ /* OSPF apiserver is disabled by default. */
+ ospf_apiserver_enable = 0;
+#endif /* SUPPORT_OSPF_API */
+
/* get program name */
progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]);
@@ -275,11 +280,6 @@ main (int argc, char **argv)
/* OSPF master init. */
ospf_master_init ();
-#ifdef SUPPORT_OSPF_API
- /* OSPF apiserver is disabled by default. */
- ospf_apiserver_enable = 0;
-#endif /* SUPPORT_OSPF_API */
-
/* Initializations. */
master = om->master;