httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/metadata mod_headers.c
Date Sun, 18 Apr 2004 19:17:44 GMT
nd          2004/04/18 12:17:44

  Modified:    .        CHANGES
               modules/metadata mod_headers.c
  Log:
  don't segfault, when setting an empty header value
  
  Revision  Changes    Path
  1.1460    +3 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.1459
  retrieving revision 1.1460
  diff -u -u -r1.1459 -r1.1460
  --- CHANGES	18 Apr 2004 16:02:57 -0000	1.1459
  +++ CHANGES	18 Apr 2004 19:17:43 -0000	1.1460
  @@ -2,6 +2,9 @@
   
     [Remove entries to the current 2.0 section below, when backported]
   
  +  *) mod_headers no longer crashes if an empty header value should
  +     be added.  [André Malo]
  +
     *) mod_cgi: Handle output on stderr during script execution on Unix
        platforms; preventing deadlock when stderr output fills pipe buffer.
        PR 22030.  [Joe Orton, Jeff Trawick]
  
  
  
  1.56      +1 -1      httpd-2.0/modules/metadata/mod_headers.c
  
  Index: mod_headers.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_headers.c,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -u -r1.55 -r1.56
  --- mod_headers.c	18 Apr 2004 19:05:49 -0000	1.55
  +++ mod_headers.c	18 Apr 2004 19:17:43 -0000	1.56
  @@ -474,7 +474,7 @@
           else
               str = apr_pstrcat(r->pool, str, s, NULL);
       }
  -    return str;
  +    return str ? str : "";
   }
   
   static int echo_header(echo_do *v, const char *key, const char *val)
  
  
  

Mime
View raw message