head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2012.03.13.17.02.32;	author mi;	state Exp;
branches;
next	;


desc
@@


1.1
log
@mod_ftp is a FTP Protocol module to serve httpd content over the
FTP protocol (whereever the HTTP protocol could also be used). It
provides both RETR/REST retrieval and STOR/APPE upload, using the
same user/permissions model as httpd (so it shares the same security
considerations as mod_dav plus mod_dav_fs).

WWW: http://httpd.apache.org/mod_ftp/

Feature safe:	yes
@
text
@Patch provided by William A. Rowe Jr. (the mod_ftp author) to fix a
rare crash after serving a file:

--- modules/ftp/ftp_commands.c	2009-09-21 15:09:19.000000000 -0400
+++ modules/ftp/ftp_commands.c	2011-11-30 16:21:38.000000000 -0500
@@@@ -2171,6 +2171,7 @@@@
     }
 
 clean_up:
+    ap_lingering_close(cdata);
     ap_destroy_sub_req(rr);
 
     /* Replace the filters and connection */
@@@@ -2181,7 +2182,6 @@@@
     r->connection = c;
 
     /* Close the data connection, send confirmation, and return  */
-    ap_lingering_close(cdata);
     fc->datasock = NULL;
     fc->filter_mask = 0;
 
@
