If a FTP PUT request is aborted while Squid is writing data to the server
then Squid may abort with a segmentation fault.
/*
- * $Id: ftp.cc,v 1.355 2003/09/07 16:53:37 hno Exp $
+ * $Id: ftp.cc,v 1.356 2004/04/04 14:47:06 hno Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
{
FtpStateData *ftpState = (FtpStateData *) data;
+ if (err == COMM_ERR_CLOSING)
+ return;
+
if (!err) {
/* Shedule the rest of the request */
clientReadBody(ftpState->request, ftpState->data.buf, ftpState->data.size, ftpRequestBody, ftpState);