From: hno <> Date: Tue, 4 Jun 2002 20:42:32 +0000 (+0000) Subject: Barf if there is too many https_port defined X-Git-Tag: SQUID_3_0_PRE1~997 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=178488337af03b31e29bd02795a46b2347650467;p=thirdparty%2Fsquid.git Barf if there is too many https_port defined --- diff --git a/src/client_side.cc b/src/client_side.cc index 81846a365e..e66a116b83 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.578 2002/04/21 21:54:03 hno Exp $ + * $Id: client_side.cc,v 1.579 2002/06/04 14:42:32 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -3175,6 +3175,11 @@ clientHttpsConnectionsOpen(void) https_port_data *https_port; int fd; for (s = Config.Sockaddr.https; s; s = s->next) { + if (MAXHTTPPORTS == NHttpSockets) { + debug(1, 1) ("WARNING: You have too many 'https_port' lines.\n"); + debug(1, 1) (" The limit is %d\n", MAXHTTPPORTS); + continue; + } enter_suid(); fd = comm_open(SOCK_STREAM, 0,