httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject cvs commit: httpd-proxy/module-2.0 proxy_ftp.c
Date Tue, 01 May 2001 21:30:07 GMT
minfrin     01/05/01 14:30:07

  Modified:    .        CHANGES
               module-2.0 proxy_ftp.c
  Log:
  Fixed a problem with directory listing corruption in the
  PROXY_DIR filter.
  
  Revision  Changes    Path
  1.30      +4 -0      httpd-proxy/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/CHANGES,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- CHANGES	2001/04/24 11:29:38	1.29
  +++ CHANGES	2001/05/01 21:30:06	1.30
  @@ -1,6 +1,10 @@
   
   mod_proxy changes for 2.0.15 current
   
  +  *) Fixed a problem with directory listing corruption in the
  +     PROXY_DIR filter.
  +     [Graham Leggett <minfrin@sharp.fm>]
  +
     *) mod_proxy and the proxy submodules now build properly as DSOs.
        [Graham Leggett <minfrin@sharp.fm>]
   
  
  
  
  1.53      +6 -1      httpd-proxy/module-2.0/proxy_ftp.c
  
  Index: proxy_ftp.c
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_ftp.c,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- proxy_ftp.c	2001/04/24 04:38:51	1.52
  +++ proxy_ftp.c	2001/05/01 21:30:07	1.53
  @@ -358,7 +358,6 @@
   	char *filename;
   	int found = 0;
   	int eos = 0;
  -	ctx->buffer[0] = 0;
   
   	/* get a complete line */
   	/* if the buffer overruns - throw data away */
  @@ -457,6 +456,12 @@
   		    ctx->buffer, filename, filename);
   	    }
   	}
  +	else {
  +	    str = apr_pstrdup(p, ctx->buffer);
  +	}
  +
  +	/* erase buffer for next time around */
  +	ctx->buffer[0] = 0;
   
   	e = apr_bucket_pool_create(str, strlen(str), p);
   	APR_BRIGADE_INSERT_TAIL(out, e);
  
  
  

Mime
View raw message