]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't really open sockets if we're doing -C
authorAlan T. DeKok <aland@freeradius.org>
Thu, 22 Sep 2011 16:43:11 +0000 (18:43 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 22 Sep 2011 16:43:35 +0000 (18:43 +0200)
src/main/listen.c

index e063e69f2e148f84daa83a4cc1f25a89ebc9f354..537ccd9a98f1bb45a4834140e4058e311372facd 100644 (file)
@@ -2038,6 +2038,14 @@ static int listen_bind(rad_listen_t *this)
                }
        }
 
+       /*
+        *      Don't open sockets if we're checking the config.
+        */
+       if (check_config) {
+               this->fd = -1;
+               return 0;
+       }
+
        /*
         *      Copy fr_socket() here, as we may need to bind to a device.
         */