]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More checks for -C, to not open sockets
authorAlan T. DeKok <aland@freeradius.org>
Fri, 23 Sep 2011 07:32:59 +0000 (09:32 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 23 Sep 2011 07:32:59 +0000 (09:32 +0200)
src/main/listen.c

index 537ccd9a98f1bb45a4834140e4058e311372facd..2aa5a5e047ecfda11872174fb57e36d6e8cc7811 100644 (file)
@@ -2860,7 +2860,7 @@ add_sockets:
                        return -1;
                }
 #endif
-               event_new_fd(this);
+               if (!check_config) event_new_fd(this);
        }
 
        /*
@@ -2869,6 +2869,7 @@ add_sockets:
         */
 #ifdef WITH_PROXY
        if ((mainconfig.proxy_requests == TRUE) &&
+           !check_config
            (*head != NULL) && !defined_proxy) {
                listen_socket_t *sock = NULL;
                int             port = 0;