]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow the server to run with only new listeners
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 22 Jun 2017 15:49:15 +0000 (11:49 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 22 Jun 2017 19:40:52 +0000 (15:40 -0400)
src/main/listen.c

index 6d5a5d77473c786dc734df4ccddc650768cf787e..3e3a0f8ea5fc716d8f74bd50da6f842048f1a083 100644 (file)
@@ -3154,10 +3154,7 @@ int listen_init(rad_listen_t **head,
        listen_config_t *lc;
        bool            incoming_sockets = false;
 
-       if (!listen_config) {
-               ERROR("The server is not configured to listen on any ports.  Cannot start");
-               return -1;
-       }
+       if (!listen_config) return 0;
 
        for (lc = listen_config; lc != NULL; lc = lc->next) {
                if (lc->type == RAD_LISTEN_COMMAND) continue;
@@ -3173,10 +3170,7 @@ int listen_init(rad_listen_t **head,
         *      one listener, because listeners can be located in
         *      multiple places.  So for now, we put it here.
         */
-       if (!incoming_sockets) {
-               ERROR("The server is not configured to listen on any ports.  Cannot start");
-               return -1;
-       }
+       if (!incoming_sockets) return 0;
 
        /*
         *      We shouldn't be called with a pre-existing list.