]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
main: setup access restrictions before initstepslew
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Apr 2014 16:22:09 +0000 (18:22 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Apr 2014 16:22:09 +0000 (18:22 +0200)
main.c

diff --git a/main.c b/main.c
index dec753de6c70f9d5e11d48735af40909fd4f2bd7..afdec05b8b43c60adcb6de49261cb9c8a32d1fdb 100644 (file)
--- a/main.c
+++ b/main.c
@@ -144,7 +144,6 @@ post_init_ntp_hook(void *anything)
        semblence of validity about it. */
     SRC_ReloadSources();
   }
-  CNF_SetupAccessRestrictions();
 
   RTC_StartMeasurements();
   RCL_StartRefclocks();
@@ -484,6 +483,8 @@ int main
   /* From now on, it is safe to do finalisation on exit */
   initialised = 1;
 
+  CNF_SetupAccessRestrictions();
+
   if (ref_mode == REF_ModeNormal && CNF_GetInitSources() > 0) {
     ref_mode = REF_ModeInitStepSlew;
   }