From: Joe Orton Date: Thu, 15 Apr 2004 20:36:45 +0000 (+0000) Subject: * server/vhost.c (remove_unused_name_vhosts): Remove redundant check; X-Git-Tag: pre_ajp_proxy~371 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b39f62cdc463c450a54d03d172e3f3329de619ee;p=apache * 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 --- 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; }