From: Alan T. DeKok Date: Thu, 22 Sep 2011 16:43:11 +0000 (+0200) Subject: Don't really open sockets if we're doing -C X-Git-Tag: release_3_0_0_beta0~624 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=405b918e9a87feb8827afba34554825a054a84e2;p=thirdparty%2Ffreeradius-server.git Don't really open sockets if we're doing -C --- diff --git a/src/main/listen.c b/src/main/listen.c index e063e69f2e1..537ccd9a98f 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -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. */