httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_request.c
Date Wed, 18 Oct 2000 22:14:20 GMT
rbb         00/10/18 15:14:20

  Modified:    src/main http_request.c
  Log:
  Sub-requests have to have a value for their request_config structure,
  or we'll seg-fault.  This should set the sub-request's request_config
  structure to the same exact same structure as the main request is using.
  
  Revision  Changes    Path
  1.65      +8 -0      apache-2.0/src/main/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_request.c,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- http_request.c	2000/10/18 21:22:14	1.64
  +++ http_request.c	2000/10/18 22:14:18	1.65
  @@ -843,7 +843,11 @@
       rnew->request_time   = r->request_time;
       rnew->connection     = r->connection;
       rnew->server         = r->server;
  +
       rnew->request_config = ap_create_request_config(rnew->pool);
  +    ap_set_module_config(rnew->request_config, &core_module,
  +              ap_get_module_config(r->request_config, &core_module));
  +
       rnew->htaccess       = r->htaccess;
       rnew->per_dir_config = r->server->lookup_defaults;
       rnew->allowed_methods = ap_make_method_list(rnew->pool, 2);
  @@ -941,7 +945,11 @@
       rnew->request_time   = r->request_time;
       rnew->connection     = r->connection;
       rnew->server         = r->server;
  +
       rnew->request_config = ap_create_request_config(rnew->pool);
  +    ap_set_module_config(rnew->request_config, &core_module,
  +              ap_get_module_config(r->request_config, &core_module));
  +
       rnew->htaccess       = r->htaccess;
       rnew->chunked        = r->chunked;
       rnew->allowed_methods = ap_make_method_list(rnew->pool, 2);
  
  
  

Mime
View raw message