(cherry picked from commit 0f172d36c36859333c77c9f258b75b2970179ccf) Source commit: 63f5c39572720f71d3dd992071d979fd40dd3d35
@@ -4547,9 +4547,7 @@ void CFtpControlSocket::ResetOperation(int nSuccessful /*=FALSE*/)
if (m_pTransferSocket)
{
- ResetTransferSocket(!(nSuccessful & FZ_REPLY_ERROR));
- delete m_pTransferSocket;
- m_pTransferSocket=0;
+ ResetTransferSocket(nSuccessful & FZ_REPLY_ERROR);
}
if (m_pDataFile)