Browse Source

Fixing logging of FTP transfer failures from b0fc69f9

(cherry picked from commit 0f172d36c36859333c77c9f258b75b2970179ccf)

Source commit: 63f5c39572720f71d3dd992071d979fd40dd3d35
Martin Prikryl 5 years ago
parent
commit
2863974af7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      source/filezilla/FtpControlSocket.cpp

+ 1 - 3
source/filezilla/FtpControlSocket.cpp

@@ -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)