httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject RE: cvs commit: apache-2.0/src/main http_protocol.c
Date Sun, 08 Oct 2000 15:57:01 GMT

I'll fix it ASAP.

Ryan

On Sun, 8 Oct 2000, William A. Rowe, Jr. wrote:

> Is bad... can't patch... have to run
> 
> > From: bjh@locus.apache.org [mailto:bjh@locus.apache.org]
> > Sent: Saturday, October 07, 2000 11:25 PM
> > 
> > bjh         00/10/07 21:25:12
> > 
> >   Modified:    src/main http_protocol.c
> >   Log:
> >   Fix handling of LF only terminated header lines by not 
> > assuming the LF
> >   character will be followed by a 0.
> >   
> >   Revision  Changes    Path
> >   1.150     +1 -1      apache-2.0/src/main/http_protocol.c
> >   
> >   Index: http_protocol.c
> >   ===================================================================
> >   RCS file: /home/cvs/apache-2.0/src/main/http_protocol.c,v
> >   retrieving revision 1.149
> >   retrieving revision 1.150
> >   diff -u -r1.149 -r1.150
> >   --- http_protocol.c	2000/10/08 00:55:46	1.149
> >   +++ http_protocol.c	2000/10/08 04:25:11	1.150
> >   @@ -1023,7 +1023,7 @@
> >    	 */
> >            if ((toss = ap_strchr_c(temp, ASCII_LF)) != NULL) { 
> >                length = toss - temp + 1;
> >   -            e->split(e, length + 1);
> >   +            e->split(e, length + (temp[length] == 0));
> 
> (conditional == may result in -1 on many platforms, but this simply
> isn't a safe test)
> 


_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message