httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Tue, 26 Feb 2002 04:04:54 GMT
jerenkrantz    02/02/25 20:04:54

  Modified:    server   core.c
  Log:
  Fix segfault if content_type is NULL.
  
  Revision  Changes    Path
  1.153     +4 -3      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.152
  retrieving revision 1.153
  diff -u -r1.152 -r1.153
  --- core.c	25 Feb 2002 06:54:40 -0000	1.152
  +++ core.c	26 Feb 2002 04:04:54 -0000	1.153
  @@ -2984,9 +2984,10 @@
       conf = (core_dir_config *)ap_get_module_config(r->per_dir_config,
                                                      &core_module);
   
  -    /* We can't do anything with proxy requests or if we don't have a filter
  -     * configured. */ 
  -    if (r->proxyreq != PROXYREQ_NONE || !conf->ct_output_filters) {
  +    /* We can't do anything with proxy requests, no content-types or if
  +     * we don't have a filter configured. */ 
  +    if (r->proxyreq != PROXYREQ_NONE || !r->content_type || 
  +        !conf->ct_output_filters) {
           return OK;
       }
   
  
  
  

Mime
View raw message