From: Alan T. DeKok Date: Thu, 9 Sep 2010 11:15:04 +0000 (+0200) Subject: Print error message if we're not configured to listen on any ports X-Git-Tag: release_3_0_0_beta0~1263 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=562c8eb7d329ed43e52b33a02d395acd32eb7525 Print error message if we're not configured to listen on any ports Manual merge of a50005713e5238 --- diff --git a/src/main/listen.c b/src/main/listen.c index 67eed25..6effff6 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -2667,6 +2667,15 @@ int listen_init(CONF_SECTION *config, rad_listen_t **head) add_sockets: /* + * No sockets to receive packets, this is an error. + * proxying is pointless. + */ + if (!*head) { + radlog(L_ERR, "The server is not configured to listen on any ports. Cannot start."); + return -1; + } + + /* * Print out which sockets we're listening on, and * add them to the event list. */