httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/http mod_mime.c
Date Sun, 15 Dec 2002 16:37:19 GMT
brianp      2002/12/15 08:37:19

  Modified:    .        CHANGES
               modules/http mod_mime.c
  Log:
  don't segfault in mod_mime's find_ct() if we get there without having set r->filename
  
  Revision  Changes    Path
  1.1011    +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.1010
  retrieving revision 1.1011
  diff -u -r1.1010 -r1.1011
  --- CHANGES	14 Dec 2002 00:13:52 -0000	1.1010
  +++ CHANGES	15 Dec 2002 16:37:18 -0000	1.1011
  @@ -2,6 +2,9 @@
   
     [Remove entries to the current 2.0 section below, when backported]
   
  +  *) mod_mime: Workaround to prevent a segfault if r->filename=NULL
  +     [Brian Pane]
  + 
     *) Added character set support to mod_auth_LDAP to allow it to 
        convert extended characters used in the user ID to UTF-8 
        before authenticating against the LDAP directory. The new
  
  
  
  1.89      +4 -0      httpd-2.0/modules/http/mod_mime.c
  
  Index: mod_mime.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/mod_mime.c,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- mod_mime.c	5 Sep 2002 11:04:25 -0000	1.88
  +++ mod_mime.c	15 Dec 2002 16:37:19 -0000	1.89
  @@ -790,6 +790,10 @@
           return OK;
       }
   
  +    if (!r->filename) {
  +        return DECLINED;
  +    }
  +
       conf = (mime_dir_config *)ap_get_module_config(r->per_dir_config,
                                                      &mime_module);
       exception_list = apr_array_make(r->pool, 2, sizeof(char *));
  
  
  

Mime
View raw message