Reorder dnsmgr to before other modules (bug #4927)
authorMark Spencer <markster@digium.com>
Sun, 14 Aug 2005 23:47:40 +0000 (23:47 +0000)
committerMark Spencer <markster@digium.com>
Sun, 14 Aug 2005 23:47:40 +0000 (23:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6332 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c

index aaad989..ca3aec3 100755 (executable)
@@ -2072,6 +2072,10 @@ int main(int argc, char *argv[])
                printf(term_quit());
                exit(1);
        }
+       if (dnsmgr_init()) {
+               printf(term_quit());
+               exit(1);
+       }
        /* load 'preload' modules, required for access to Realtime-mapped configuration files */
        if (load_modules(1)) {
                printf(term_quit());
@@ -2119,10 +2123,6 @@ int main(int argc, char *argv[])
                printf(term_quit());
                exit(1);
        }
-       if (dnsmgr_init()) {
-               printf(term_quit());
-               exit(1);
-       }
 #if 0
        /* This should no longer be necessary */
        /* sync cust config and reload some internals in case a custom config handler binded to them */