From b7b0e8f80864833bcb8018d48011de968975da7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 13 Sep 2018 09:51:02 +0200 Subject: Fix pointer comparison This resolves issue #1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit ca3519502d5ae6da51c2a56e4d9d32606d1be7d8) --- tdeio_ftps/ftp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdeio_ftps/ftp.cc b/tdeio_ftps/ftp.cc index 2bacb8e..41e6f32 100644 --- a/tdeio_ftps/ftp.cc +++ b/tdeio_ftps/ftp.cc @@ -1266,7 +1266,7 @@ bool Ftp::ftpCloseCommand() kdDebug(7102) << "ftpCloseCommand: reading command result" << endl; m_bBusy = false; - if(ftpResponse(-1) <= 0 || (m_iRespType != 2) ) + if(!ftpResponse(-1) || (m_iRespType != 2) ) { kdDebug(7102) << "ftpCloseCommand: no transfer complete message" << endl; return false; -- cgit v1.2.1