X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/f71e18eee589ba32d142c73fdb206c8541c85568..6fcb8629ae638cceeead036a7240821c9886fe0f:/src/s_auth.c diff --git a/src/s_auth.c b/src/s_auth.c index 6224aa6..aae2eb6 100644 --- a/src/s_auth.c +++ b/src/s_auth.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: s_auth.c 3161 2007-01-25 07:23:01Z nenolod $ */ + * $Id: s_auth.c 3354 2007-04-03 09:21:31Z nenolod $ */ /* * Changes: @@ -286,7 +286,11 @@ start_auth_query(struct AuthRequest *auth) ++ServerStats->is_abad; return 0; } - if((MAXCONNECTIONS - 10) < fd) + + /* + * TBD: this is a pointless arbitrary limit .. we either have a socket or not. -nenolod + */ + if((comm_get_maxconnections() - 10) < fd) { sendto_realops_snomask(SNO_GENERAL, L_ALL, "Can't allocate fd for auth on %s",