]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* server/vhost.c: Remove redundant vhost_check_config hook which never
authorJoe Orton <jorton@apache.org>
Thu, 12 Apr 2018 14:47:38 +0000 (14:47 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 12 Apr 2018 14:47:38 +0000 (14:47 +0000)
  fails, r1053230 removed all the places where config_error was set.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828983 13f79535-47bb-0310-9956-ffa450edef68

server/vhost.c

index f71deb49488856fe023010121ff238445095e0e4..dc9689d2c0e2542c0dcf7252208b2ddc341bdc35 100644 (file)
@@ -98,13 +98,6 @@ static ipaddr_chain *iphash_table[IPHASH_TABLE_SIZE];
 /* list of the _default_ servers */
 static ipaddr_chain *default_list;
 
-/* whether a config error was seen */
-static int config_error = 0;
-
-/* config check function */
-static int vhost_check_config(apr_pool_t *p, apr_pool_t *plog,
-                              apr_pool_t *ptemp, server_rec *s);
-
 /*
  * How it's used:
  *
@@ -133,7 +126,6 @@ AP_DECLARE(void) ap_init_vhost_config(apr_pool_t *p)
 {
     memset(iphash_table, 0, sizeof(iphash_table));
     default_list = NULL;
-    ap_hook_check_config(vhost_check_config, NULL, NULL, APR_HOOK_MIDDLE);
 }
 
 
@@ -694,12 +686,6 @@ AP_DECLARE(void) ap_fini_vhost_config(apr_pool_t *p, server_rec *main_s)
     }
 }
 
-static int vhost_check_config(apr_pool_t *p, apr_pool_t *plog,
-                              apr_pool_t *ptemp, server_rec *s)
-{
-    return config_error ? !OK : OK;
-}
-
 /*****************************************************************************
  * run-time vhost matching functions
  */