From b39f62cdc463c450a54d03d172e3f3329de619ee Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 15 Apr 2004 20:36:45 +0000 Subject: [PATCH] * server/vhost.c (remove_unused_name_vhosts): Remove redundant check; catch all port-based NameVirtualHosts without defined VirtualHosts, preventing segfaults later in some misconfigurations. PR: 27731 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103400 13f79535-47bb-0310-9956-ffa450edef68 --- server/vhost.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/vhost.c b/server/vhost.c index 5c04d11be0..9ea6782296 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -500,12 +500,6 @@ static void remove_unused_name_vhosts(server_rec *main_s, ipaddr_chain **pic) ic->sar->virthost, ic->sar->host_port); *pic = ic->next; } - else if (ic->names == NULL) { - /* if server != NULL and names == NULL then we're done - * looking at NameVirtualHosts - */ - break; - } else { pic = &ic->next; } -- 2.50.1