From 178488337af03b31e29bd02795a46b2347650467 Mon Sep 17 00:00:00 2001 From: hno <> Date: Tue, 4 Jun 2002 20:42:32 +0000 Subject: [PATCH] Barf if there is too many https_port defined --- src/client_side.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, -- 2.47.3