]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Barf if there is too many https_port defined
authorhno <>
Tue, 4 Jun 2002 20:42:32 +0000 (20:42 +0000)
committerhno <>
Tue, 4 Jun 2002 20:42:32 +0000 (20:42 +0000)
src/client_side.cc

index 81846a365ea75292a9dc6902905522f290639186..e66a116b83fd25388630d8457229f1e561c5ecb2 100644 (file)
@@ -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,