/*
- * $Id: ftp.cc,v 1.305 2001/01/07 23:36:38 hno Exp $
+ * $Id: ftp.cc,v 1.306 2001/01/08 23:32:21 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
/* Terminate here for HEAD requests */
ftpAppendSuccessHeader(ftpState);
storeTimestampsSet(ftpState->entry);
- fwdComplete(ftpState->fwd);
+ /*
+ * On rare occasions I'm seeing the entry get aborted after
+ * ftpReadControlReply() and before here, probably when
+ * trying to write to the client.
+ */
+ if (!EBIT_TEST(ftpState->entry->flags, ENTRY_ABORTED))
+ fwdComplete(ftpState->fwd);
ftpSendQuit(ftpState);
return;
}