]> granicus.if.org Git - apache/commitdiff
* server/vhost.c (remove_unused_name_vhosts): Remove redundant check;
authorJoe Orton <jorton@apache.org>
Thu, 15 Apr 2004 20:36:45 +0000 (20:36 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 15 Apr 2004 20:36:45 +0000 (20:36 +0000)
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

index 5c04d11be0c0b2f6ef903d132e206f3aa2bcb61d..9ea6782296cf7645f92a6f4fb6f1c093054187b6 100644 (file)
@@ -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;
         }